How to run a command on Ubuntu just before reboot or shutdown
772
I want to execute a script when I click on Reboot or Shutdown, but just before anything, so all filesystems are still mounted, like if I entered the command on Terminal, when the operating system is still running.
OS is Ubuntu 19.04
0 Answers