PATH=/etc:/bin:/usr/ucb:/usr/bin; export PATH
echo Fast boot ... skipping disk checks >/dev/console
echo Automatic reboot in progress... >/dev/console
fsck -p >/dev/console 2>&1
echo "Automatic reboot failed... help!" >/dev/console
echo "Reboot interrupted" >/dev/console
echo "Unknown error in reboot" > /dev/console
# attempt to rationally recover the passwd file if needed
ls -l /etc/passwd /etc/ptmp >/dev/console
rm -f /etc/ptmp # should really remove the shorter
echo 'passwd file recovered from ptmp' >/dev/console
echo 'removing passwd lock file' >/dev/console
mount -f `awk -F: '$2 == "/" && $3 ~ /r[wq]/ { print $1 }' </etc/fstab` /
swapon -a >/dev/console 2>&1
mount -a >/dev/console 2>&1
echo -n 'checking quotas:' >/dev/console
quotacheck -a -p >/dev/console 2>&1
echo ' done.' >/dev/console
rm -f /usr/spool/uucp/LCK.*
rm -f /usr/spool/uucp/STST/*
chmod 666 /dev/tty[pqrs]*
# set hostname, turn on network
echo 'starting system logger' >/dev/console
# /etc/crash should be a symbolic link to the crash directory
# if core dumps are to be saved.
if [ -d /etc/crash ]; then
echo 'checking for core dump... ' >/dev/console
savecore /etc/crash >/dev/console 2>&1
echo preserving editor files >/dev/console
(cd /tmp; /usr/lib/ex3.7preserve -a)
echo clearing /tmp >/dev/console
(cd /tmp; find . ! -name . ! -name lost+found ! -name quotas -exec rm -r {} \; )
echo -n standard daemons: >/dev/console
update; echo -n ' update' >/dev/console
cron; echo -n ' cron' >/dev/console
accton /usr/adm/acct; echo -n ' accounting' >/dev/console
echo -n starting network daemons: >/dev/console
# $routedflags is imported from /etc/netstart;
# if $routedflags == NO, routed isn't run.
if [ ${routedflags-X} != "NO" ]; then
routed $routedflags; echo -n ' routed' >/dev/console
named; echo -n ' named' >/dev/console
inetd; echo -n ' inetd' >/dev/console
# $rwhod is imported from /etc/netstart;
# if $rwhod is set to something other than NO, rwhod is run.
if [ ${rwhod-NO} != "NO" ]; then
rwhod; echo -n ' rwhod' >/dev/console
/usr/lib/lpd; echo -n ' printer' >/dev/console