|
|
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: 2)
17: exit 1
18: ;;
19: 4)
20: /etc/reboot -n
21: ;;
22: 8)
23: echo "Automatic reboot failed... help!" >/dev/console
24: exit 1
25: ;;
26: 12)
27: echo "Reboot interrupted" >/dev/console
28: exit 1
29: ;;
30: *)
31: echo "Unknown error in reboot" > /dev/console
32: exit 1
33: ;;
34: esac
35: else
36: date >/dev/console
37: fi
38:
39: # attempt to rationally recover the passwd file if needed
40: if [ -s /etc/ptmp ]
41: then
42: if [ -s /etc/passwd ]
43: then
44: ls -l /etc/passwd /etc/ptmp >/dev/console
45: rm -f /etc/ptmp # should really remove the shorter
46: else
47: echo 'passwd file recovered from ptmp' >/dev/console
48: mv /etc/ptmp /etc/passwd
49: fi
50: elif [ -r /etc/ptmp ]
51: then
52: echo 'removing passwd lock file' >/dev/console
53: rm -f /etc/ptmp
54: fi
55:
56: /etc/umount -a
57: cp /dev/null /etc/mtab
58: /etc/swapon -a >/dev/console 2>&1
59: /etc/mount -a >/dev/console 2>&1
60:
61: echo -n 'checking quotas:' >/dev/console
62: /etc/quotacheck -a -p >/dev/console 2>&1
63: echo ' done.' >/dev/console
64: /etc/quotaon -a
65:
66: /bin/ps -U >/dev/console 2>&1
67: rm -f /etc/nologin
68: rm -f /usr/spool/uucp/LCK.*
69: chmod 666 /dev/tty[pqrs]*
70:
71: sh /etc/rc.local
72:
73: echo preserving editor files >/dev/console
74: (cd /tmp; /usr/lib/ex3.7preserve -a)
75: echo clearing /tmp >/dev/console
76: (cd /tmp; find . ! -name . ! -name lost+found ! -name quotas -exec rm -r {} \; )
77:
78: echo -n standard daemons: >/dev/console
79: /etc/update; echo -n ' update' >/dev/console
80: /etc/cron; echo -n ' cron' >/dev/console
81: /etc/accton /usr/adm/acct; echo -n ' accounting' >/dev/console
82: echo '.' >/dev/console
83:
84: echo -n starting network daemons: >/dev/console
85: if [ -f /etc/rwhod ]; then
86: /etc/rwhod; echo -n ' rwhod' >/dev/console
87: fi
88: if [ -f /etc/inetd ]; then
89: /etc/inetd; echo -n ' inetd' >/dev/console
90: fi
91: if [ -f /usr/lib/lpd ]; then
92: rm -f /dev/printer
93: /usr/lib/lpd; echo -n ' printer' >/dev/console
94: fi
95: echo '.' >/dev/console
96:
97: date >/dev/console
98: exit 0
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.