home *** CD-ROM | disk | FTP | other *** search
-
- # "Run Commands" executed when the system is changing to init state 1
- #
-
- . /etc/TIMEZONE
- set `/sbin/who -r`
- if [ $9 = "S" ]
- then
- echo 'The system is coming up for administration. Please wait.'
- BOOT=yes
-
- elif [ $7 = "1" ]
- then
- echo 'Changing to state 1.'
- if [ -d /etc/rc1.d ]
- then
- for f in /etc/rc1.d/K*
- {
- if [ -s ${f} ]
- then
- /sbin/sh ${f} stop
- fi
- }
- fi
- fi
-
- if [ -d /etc/rc1.d ]
- then
- for f in /etc/rc1.d/S*
- {
- if [ -s ${f} ]
- then
- /sbin/sh ${f} start
- fi
- }
- fi
-
- if [ "${BOOT}" = "yes" -a $7 = "1" ]
- then
- echo 'The system is ready for administration.'
- elif [ $7 = "1" ]
- then
- echo 'Change to state 1 has been completed.'
- fi
-
-