Annotation of 43BSDTahoe/sys/vaxdist/rc, revision 1.1

1.1     ! root        1: HOME=/; export HOME
        !             2: PATH=/etc:/bin:/usr/ucb:/usr/bin; export PATH
        !             3: 
        !             4: if [ -r /fastboot ]
        !             5: then
        !             6:        rm -f /fastboot
        !             7:        echo Fast boot ... skipping disk checks >/dev/console
        !             8: elif [ $1x = autobootx ]
        !             9: then
        !            10:        echo Automatic reboot in progress...            >/dev/console
        !            11:        date                                            >/dev/console
        !            12:        fsck -p                                         >/dev/console 2>&1
        !            13:        case $? in
        !            14:        0)
        !            15:                date >/dev/console
        !            16:                ;;
        !            17:        2)
        !            18:                exit 1
        !            19:                ;;
        !            20:        4)
        !            21:                reboot -n
        !            22:                ;;
        !            23:        8)
        !            24:                echo "Automatic reboot failed... help!" >/dev/console
        !            25:                exit 1
        !            26:                ;;
        !            27:        12)
        !            28:                echo "Reboot interrupted" >/dev/console
        !            29:                exit 1
        !            30:                ;;
        !            31:        *)
        !            32:                echo "Unknown error in reboot" > /dev/console
        !            33:                exit 1
        !            34:                ;;
        !            35:        esac
        !            36: else
        !            37:        date >/dev/console
        !            38: fi
        !            39: 
        !            40: # attempt to rationally recover the passwd file if needed
        !            41: if [ -s /etc/ptmp ]
        !            42: then
        !            43:        if [ -s /etc/passwd ]
        !            44:        then
        !            45:                ls -l /etc/passwd /etc/ptmp >/dev/console
        !            46:                rm -f /etc/ptmp         # should really remove the shorter
        !            47:        else
        !            48:                echo 'passwd file recovered from ptmp' >/dev/console
        !            49:                mv /etc/ptmp /etc/passwd
        !            50:        fi
        !            51: elif [ -r /etc/ptmp ]
        !            52: then
        !            53:        echo 'removing passwd lock file' >/dev/console
        !            54:        rm -f /etc/ptmp
        !            55: fi
        !            56: 
        !            57: umount -a
        !            58: : >/etc/mtab
        !            59: mount -f `awk -F: '$2 == "/" && $3 ~ /r[wq]/ { print $1 }' </etc/fstab` /
        !            60: swapon -a                                              >/dev/console 2>&1
        !            61: mount -a                                               >/dev/console 2>&1
        !            62: 
        !            63:                        echo -n 'checking quotas:'      >/dev/console
        !            64: quotacheck -a -p                                       >/dev/console 2>&1
        !            65:                        echo ' done.'                   >/dev/console
        !            66: quotaon -a
        !            67: 
        !            68: ps -U                                                  >/dev/console 2>&1
        !            69: rm -f /etc/nologin
        !            70: rm -f /usr/spool/uucp/LCK.*
        !            71: rm -f /usr/spool/uucp/STST/*
        !            72: chmod 666 /dev/tty[pqrs]*
        !            73: 
        !            74: # set hostname, turn on network
        !            75: . /etc/netstart
        !            76: 
        !            77:                        echo 'starting system logger'   >/dev/console
        !            78: rm -f /dev/log
        !            79: syslogd
        !            80: 
        !            81: # /etc/crash should be a symbolic link to the crash directory
        !            82: # if core dumps are to be saved.
        !            83: if [ -d /etc/crash ]; then
        !            84:        echo            'checking for core dump... '    >/dev/console
        !            85:        savecore /etc/crash                             >/dev/console 2>&1
        !            86: fi
        !            87: 
        !            88:                        echo preserving editor files    >/dev/console
        !            89: (cd /tmp; /usr/lib/ex3.7preserve -a)
        !            90:                        echo clearing /tmp              >/dev/console
        !            91: (cd /tmp; find . ! -name . ! -name lost+found ! -name quotas -exec rm -r {} \; )
        !            92: 
        !            93:                        echo -n standard daemons:       >/dev/console
        !            94: update;                        echo -n ' update'               >/dev/console
        !            95: cron;                  echo -n ' cron'                 >/dev/console
        !            96: accton /usr/adm/acct;  echo -n ' accounting'           >/dev/console
        !            97:                        echo '.'                        >/dev/console
        !            98: 
        !            99: echo -n starting network daemons:                      >/dev/console
        !           100: 
        !           101: # $routedflags is imported from /etc/netstart;
        !           102: # if $routedflags == NO, routed isn't run.
        !           103: if [ ${routedflags-X} != "NO" ]; then
        !           104:        routed $routedflags; echo -n ' routed'          >/dev/console
        !           105: fi
        !           106: 
        !           107: named;                 echo -n ' named'                >/dev/console
        !           108: inetd;                 echo -n ' inetd'                >/dev/console
        !           109: 
        !           110: # $rwhod is imported from /etc/netstart;
        !           111: # if $rwhod is set to something other than NO, rwhod is run.
        !           112: if [ ${rwhod-NO} != "NO" ]; then
        !           113:        rwhod;          echo -n ' rwhod'                >/dev/console
        !           114: fi
        !           115: 
        !           116: rm -f /dev/printer
        !           117: /usr/lib/lpd;          echo -n ' printer'              >/dev/console
        !           118:                        echo '.'                        >/dev/console
        !           119: 
        !           120: sh /etc/rc.local
        !           121: 
        !           122:                        date                            >/dev/console
        !           123: exit 0

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.