If you want to run in shutdown you should add your script file into /etc/rc6.d/. If you want to run the things in reboot you should add you script file to /etc/rc0.d/.
Make sure at the first of your script file name should be K99. After creating your script file run chmod +x K99Something to give neccessary permission.
If you want to run in shutdown you should add your script file into
/etc/rc6.d/
. If you want to run the things in reboot you should add you script file to/etc/rc0.d/
.Make sure at the first of your script file name should be K99. After creating your script file run
chmod +x K99Something
to give neccessary permission.