|
|
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
1.1.1.2 ! root 57: echo clearing /tmp >/dev/console
! 58: (cd /tmp; rm -f *)
! 59: if [ -s /etc/rc.sp ]
! 60: then
! 61: . /etc/rc.sp
! 62: fi
! 63: if [ -s /etc/rc.op ]
! 64: then
! 65: . /etc/rc.op
! 66: fi
1.1 root 67: sh /etc/rc.local
1.1.1.2 ! root 68: chmod 666 /tmp/prolock*
1.1 root 69: echo preserving editor files >/dev/console
70: (cd /tmp; /usr/lib/ex3.7preserve -a)
71: echo -n standard daemons: >/dev/console
72: /etc/update; echo -n ' update' >/dev/console
73: /etc/cron; echo -n ' cron' >/dev/console
74: /etc/accton /usr/adm/acct; echo -n ' accounting' >/dev/console
75: /etc/comsat; echo -n ' mail' >/dev/console
76: cd /usr/spool
1.1.1.2 ! root 77: rm -f uucp/LCK/*
1.1 root 78: if [ -f /usr/lib/lpd ]; then
79: rm -f /dev/printer
80: /usr/lib/lpd & echo -n ' printer' >/dev/console
81: fi
82: echo '.' >/dev/console
83:
84: cd /
85: echo '.' >/dev/console
86: date >/dev/console
87: exit 0
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.