4
# Required-Start: $remote_fs
9
# Short-Description: Miscellaneous things to be done during bootup.
10
# Description: Some cleanup. Note, it need to run after mountnfs-bootclean.sh.
13
PATH=/sbin:/usr/sbin:/bin:/usr/bin
14
[ "$DELAYLOGIN" ] || DELAYLOGIN=yes
19
# If login delaying is enabled then create the flag file
20
# which prevents logins before startup is complete
24
echo "System bootup in progress - please wait" > /var/lib/initscripts/nologin
28
# Create /var/run/utmp so we can login.
30
if grep -q ^utmp: /etc/group
32
chmod 664 /var/run/utmp
33
chgrp utmp /var/run/utmp
36
# Set pseudo-terminal access permissions.
37
if [ ! -e /dev/.devfsd ] && [ ! -e /dev/.udev ] && [ -c /dev/ttyp0 ]
39
chmod -f 666 /dev/tty[p-za-e][0-9a-f]
40
chown -f root:tty /dev/tty[p-za-e][0-9a-f]
43
# Remove bootclean's flag files.
44
# Don't run bootclean again after this!
45
rm -f /tmp/.clean /var/run/.clean /var/lock/.clean
52
restart|reload|force-reload)
53
echo "Error: argument '$1' not supported" >&2
60
echo "Usage: bootmisc.sh [start|stop]" >&2