Annotation of 42BSD/sys/dist/rc, revision 1.1.1.1

1.1       root        1: HOME=/; export HOME
                      2: PATH=/bin:/usr/bin
                      3: if [ -r /fastboot ]
                      4: then
                      5:        rm -f /fastboot
                      6:        echo Fast boot ... skipping disk checks >/dev/console
                      7: elif [ $1x = autobootx ]
                      8: then
                      9:        echo Automatic reboot in progress... >/dev/console
                     10:        date >/dev/console
                     11:        /etc/fsck -p >/dev/console
                     12:        case $? in
                     13:        0)
                     14:                date >/dev/console
                     15:                ;;
                     16:        4)
                     17:                /etc/reboot -n
                     18:                ;;
                     19:        8)
                     20:                echo "Automatic reboot failed... help!" >/dev/console
                     21:                exit 1
                     22:                ;;
                     23:        12)
                     24:                echo "Reboot interrupted" >/dev/console
                     25:                exit 1
                     26:                ;;
                     27:        *)
                     28:                echo "Unknown error in reboot" > /dev/console
                     29:                exit 1
                     30:                ;;
                     31:        esac
                     32: else
                     33:        date >/dev/console
                     34: fi
                     35: rm -f /etc/nologin
                     36: 
                     37: # attempt to rationally recover the passwd file if needed
                     38: if [ -s /etc/ptmp ]
                     39: then
                     40:        if [ -s /etc/passwd ]
                     41:        then
                     42:                ls -l /etc/passwd /etc/ptmp >/dev/console
                     43:                rm -f /etc/ptmp         # should really remove the shorter
                     44:        else
                     45:                echo 'passwd file recovered from ptmp' >/dev/console
                     46:                mv /etc/ptmp /etc/passwd
                     47:        fi
                     48: elif [ -r /etc/ptmp ]
                     49: then
                     50:        echo 'removing passwd lock file' >/dev/console
                     51:        rm -f /etc/ptmp
                     52: fi
                     53: cp /dev/null /etc/mtab
                     54: chmod 666 /etc/motd
                     55: /etc/swapon -a                                                 >/dev/console
                     56: /etc/mount -a                                                  >/dev/console
                     57: sh /etc/rc.local
                     58:                                echo preserving editor files    >/dev/console
                     59: (cd /tmp; /usr/lib/ex3.7preserve -a)
                     60:                                echo clearing /tmp              >/dev/console
                     61: (cd /tmp; rm -f *)
                     62:                                echo -n standard daemons:       >/dev/console
                     63: /etc/update;                   echo -n ' update'               >/dev/console
                     64: /etc/cron;                     echo -n ' cron'                 >/dev/console
                     65: /etc/accton /usr/adm/acct;     echo -n ' accounting'           >/dev/console
                     66: /etc/comsat;                   echo -n ' mail'                 >/dev/console
                     67: cd /usr/spool
                     68: rm -f uucp/LCK.*
                     69: if [ -f /usr/lib/lpd ]; then
                     70:        rm -f /dev/printer
                     71:        /usr/lib/lpd &          echo -n ' printer'              >/dev/console
                     72: fi
                     73:                                echo '.'                        >/dev/console
                     74: 
                     75: cd /
                     76: echo -n starting network:                                      >/dev/console
                     77: if [ -f /etc/rshd ]; then
                     78:        /etc/rshd & echo -n ' rshd'                             >/dev/console
                     79:        /etc/rexecd & echo -n ' rexecd'                         >/dev/console
                     80:        /etc/rlogind & echo -n ' rlogind'                       >/dev/console
                     81:        /etc/rwhod & echo -n ' rwhod'                           >/dev/console
                     82: fi
                     83:                                echo '.'                        >/dev/console
                     84:                                date                            >/dev/console
                     85: exit 0

unix.superglobalmegacorp.com

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