6 install -m0755 $SCRIPT_DIRECTORY/service /sbin/service &&
7 mkdir -p /etc/rc{S,0,1,2,3,4,5,6}.d /etc/init.d /var/{run,log} ||
8 # error out here in case of failure
11 # the rest should be safe now:
12 if [ ! -e /etc/inittab ] ; then
13 install -m0600 $SCRIPT_DIRECTORY/inittab /etc/
16 for SCRIPT in halt rc rcS reboot signals bootmisc ; do
17 if [ ! -e /etc/init.d/$SCRIPT ] ; then
18 install -m0700 $SCRIPT_DIRECTORY/init.d/$SCRIPT /etc/init.d/
22 ln -sf ../init.d/signals /etc/rc0.d/S80signals
23 ln -sf ../init.d/halt /etc/rc0.d/S90halt
24 ln -sf ../init.d/bootmisc /etc/rcS.d/S99bootmisc
25 ln -sf ../init.d/signals /etc/rc6.d/S80signals
26 ln -sf ../init.d/reboot /etc/rc6.d/S90reboot
28 touch /var/run/utmp /var/log/{w,b}tmp /var/log/lastlog
29 chmod 644 /var/run/utmp /var/log/wtmp /var/log/lastlog
30 chmod 600 /var/log/btmp