blob: eab3680d550714d5d3c87eccb5fae17eade7853c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
#!/bin/sh
PATH=/bin:/sbin
if [ -r /fastboot ]
then
rm -f /fastboot
echo Fast boot ... skipping disk checks
elif [ $1x = autobootx ]
then
echo Automatic reboot in progress...
date
# Find the filesystem by a kludge, and extract the root device name.
fsargs = `ps -MaxHww --fmt=%command | grep exec-server-task | head -1`
dev = `echo $fsargs | sed 's/^.* \([^ ]*\)$/\1/' `
type = `echo $fsargs | sed 's/^\/hurd\/\(.*\)\.static.*$/\1/' `
fsck.$type -p /dev/r$dev
case $? in
# Successful completion
0)
date
;;
# Filesystem modified
1)
2)
fsysopts / -uw
date
;;
# Fsck couldn't fix it.
4)
8)
echo "Automatic reboot failed... help!"
exit 1
;;
# SIGINT
130)
echo "Reboot interrupted"
exit 1
;;
# Oh dear.
*)
echo "Unknown error in reboot"
exit 1
;;
else
date
endif
# Until new hostname functions are in place
test -r /etc/hostname && hostname `cat /etc/hostname`
echo -n cleaning lock files...
rm -f /etc/nologin
rm -f /var/lock/LCK.*
echo done
echo -n clearing /tmp...
(cd /tmp; find . ! -name . ! -name lost+found ! -name quotas -exec rm -r {} \; )
echo done
chmod 664 /etc/motd
chmod 666 /dev/tty[pqrs]*
echo -n starting daemons:
/sbin/syslogd; echo -n ' syslogd'
/sbin/inetd; echo -n ' inet'
echo .
date
|