Shutdown/reboot script

  • i run a backup of some temp file in the rc.shutdown file, but they dont run when i do a reboot.  i noticed there are alot of rc.* file depending on what kind of reboot/shutdown is happening (looks like 4 different ones?).  which file should i put my command in if i want it to run on any shutdown or reboot?

  • Rebel Alliance Developer Netgate

    You'll probably either have to add it to all of them, or add support to all of them for calling an external shutdown command.

    For example, in each of them, add a line that tests if /etc/rc.shutdown.local exists and if so, run it.

  • thanks.


Log in to reply