2 # bootmisc.sh Miscellaneous things to be done during bootup.
7 # Put a nologin file in /etc to prevent people from logging in before
8 # system startup is complete.
10 if test "$DELAYLOGIN" = yes
12 echo "System bootup in progress - please wait" > /etc/nologin
13 cp /etc/nologin /etc/nologin.boot
17 # Set pseudo-terminal access permissions.
19 if ( ! grep -q devfs /proc/mounts ) && test -c /dev/ttyp0
21 chmod 666 /dev/tty[p-za-e][0-9a-f]
22 chown root:tty /dev/tty[p-za-e][0-9a-f]
26 # Apply /proc settings if defined
28 SYSCTL_CONF="/etc/sysctl.conf"
29 if [ -f "${SYSCTL_CONF}" ]
31 if [ -x "/sbin/sysctl" ]
33 /sbin/sysctl -p "${SYSCTL_CONF}"
35 echo "To have ${SYSCTL_CONF} applied during boot, install package <procps>."
42 if test "$EDITMOTD" != no
44 uname -a > /etc/motd.tmp
45 sed 1d /etc/motd >> /etc/motd.tmp
46 mv /etc/motd.tmp /etc/motd
50 # This is as good a place as any for a sanity check
51 # /tmp should be a symlink to /var/tmp to cut down on the number
52 # of mounted ramdisks.
53 if test ! -L /tmp && test -d /var/tmp
60 # Update dynamic library cache
65 # Recover the time, if there is a time file
67 if test -e /etc/timestamp
69 date -s `cat /etc/timestamp`