Running a custom script at system shutdown/reboot?
With Knoppix 4.0.2 CD:
I tried to run a custom script at system shutdown by placing the link
in /etc/rc6.d -directory but it didn't work.
Then I noticed that /etc/inittab has these lines:
l0:0:wait:/etc/init.d/knoppix-halt
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/knoppix-reboot
Is there a (Knoppix-specific) reason for not using rc in runlevels 0 &
6, or could this be changed to use rc for all runlevels, so that
custom scripts would work?
--
Markus Laire
Reply to: