|
Yes, for shutdown scripts, put a script in /etc/rc.d/rc0.d/
Like the default scripts in there, the filename needs to start with K, then a number. K means "stop" or "kill" and scripts are run starting with the smallest number after K, then moving up.
Then you can also apply the script to reboot by copying or linking the script into /etc/rc.d/rc6.d/
|