In Slackware, shutdown instructions are located in /etc/rc.d/rc.6 (rc.0 is a symlink to rc.6). However, local changes are best made in /etc/rc.d/rc.local_shutdown (which doesn't exist -- you need to create it). It will automatically get executed when the system is being shutdown. HOWEVER, if you look at rc.6, this script gets executed very early on in the shutdown procedure, and if you need to perform actions on your NIC, you may need to edit rc.6 directly (because the network interface is brought down AFTER rc.local_shutdown is run).
|