home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
- # "Run Commands" executed when the system is changing to init state 2,
- # traditionally called "multi-user".
-
- . /etc/TIMEZONE
-
- # Pickup start-up packages for mounts, daemons, services, etc.
-
- if i386
- then
- /etc/conf/bin/idmkenv
- fi
-
- set `/sbin/who -r`
- if [ x$9 = "xS" -o x$9 = "x1" ]
- then
- echo 'The system is coming up. Please wait.'
- BOOT=yes
-
- elif [ x$7 = "x2" ]
- then
- echo 'Changing to state 2.'
- if [ -d /etc/rc2.d ]
- then
- for f in /etc/rc2.d/K*
- {
- if [ -s ${f} ]
- then
- /sbin/sh ${f} stop
- fi
- }
- fi
- fi
-
- if [ -d /etc/rc2.d ]
- then
- for f in /etc/rc2.d/S*
- {
- if [ -s ${f} ]
- then
- /sbin/sh ${f} start
- fi
- }
- fi
-
- # Execute rc scripts from driver packages (386)
- if [ -d /etc/idrc.d ]
- then
- for f in /etc/idrc.d/*
- {
- if [ -s ${f} ]
- then
- /sbin/sh ${f}
- fi
- }
- fi
-
- if [ "${BOOT}" = "yes" -a -d /etc/rc.d ]
- then
- for f in `/usr/bin/ls /etc/rc.d`
- {
- if [ ! -s /etc/init.d/${f} ]
- then
- /sbin/sh /etc/rc.d/${f}
- fi
- }
- fi
-
- if [ x$9 = "xS" -o x$9 = "x1" ]
- then
- if [ -f /etc/rc.d/PRESERVE ] # historical segment for vi and ex
- then
- /usr/bin/mv /etc/rc.d/PRESERVE /etc/init.d
- /usr/bin/ln /etc/init.d/PRESERVE /etc/rc2.d/S02PRESERVE
- fi
- fi
-
- if [ "${BOOT}" = "yes" -a x$7 = "x2" ]
- then
- echo 'The system is ready.'
- elif [ x$7 = "x2" ]
- then
- echo 'Change to state 2 has been completed.'
- fi
-
-