Is there any way to add scripts to the shutdown process, similar to startup process? I have a machine without a monitor that I connect to remotely, and would basically like an audible beep immediately before or after the “It is now safe to turn off your computer” screen.
I could rename the shutdown binary and write a script that beeps and then calls the renamed shutdown binary. But, I generally shutdown from command line, so this method does not really have any benefit. I’d prefer to receive some acknowledgement that ‘its safe to turn off computer’ rather than relying on my internal clock and intuition.
Ideas?