4 # Required-Start: $local_fs mountvirtfs
5 # Required-Stop: $local_fs
8 # Short-Description: Misc and other.
13 # Put a nologin file in /etc to prevent people from logging in before
14 # system startup is complete.
16 if test "$DELAYLOGIN" = yes
18 echo "System bootup in progress - please wait" > /etc/nologin
19 cp /etc/nologin /etc/nologin.boot
23 # Set pseudo-terminal access permissions.
27 chmod 666 /dev/tty[p-za-e][0-9a-f]
28 chown root:tty /dev/tty[p-za-e][0-9a-f]
32 # Apply /proc settings if defined
34 SYSCTL_CONF="/etc/sysctl.conf"
35 if [ -f "${SYSCTL_CONF}" ]
37 if [ -x "/sbin/sysctl" ]
39 /sbin/sysctl -p "${SYSCTL_CONF}"
41 echo "To have ${SYSCTL_CONF} applied during boot, install package <procps>."
48 if test "$EDITMOTD" != no
50 uname -a > /etc/motd.tmp
51 sed 1d /etc/motd >> /etc/motd.tmp
52 mv /etc/motd.tmp /etc/motd
56 # This is as good a place as any for a sanity check
58 # Set the system clock from hardware clock
59 # If the timestamp is more recent than the current time,
60 # use the timestamp instead.
61 test -x /etc/init.d/hwclock.sh && /etc/init.d/hwclock.sh start
62 if test -e /etc/timestamp
64 SYSTEMDATE=`date -u +%4Y%2m%2d%2H%2M`
65 read TIMESTAMP < /etc/timestamp
66 if [ ${TIMESTAMP} -gt $SYSTEMDATE ]; then
67 date -u ${TIMESTAMP#????}${TIMESTAMP%????????}
68 test -x /etc/init.d/hwclock.sh && /etc/init.d/hwclock.sh stop