version 1.16, 1996/06/12 09:13:20 |
version 1.17, 1996/06/18 15:30:01 |
|
|
export PATH |
export PATH |
|
|
# Configure ccd devices. |
# Configure ccd devices. |
if [ -f /etc/ccd.conf ] |
if [ -f /etc/ccd.conf ]; then |
then |
|
ccdconfig -C |
ccdconfig -C |
fi |
fi |
|
|
if [ -e /fastboot ] |
if [ -e /fastboot ]; then |
then |
|
echo "Fast boot: skipping disk checks." |
echo "Fast boot: skipping disk checks." |
elif [ $1x = autobootx ] |
elif [ $1x = autobootx ]; then |
then |
|
echo "Automatic boot in progress: starting file system checks." |
echo "Automatic boot in progress: starting file system checks." |
fsck -p |
fsck -p |
case $? in |
case $? in |
|
|
chmod 666 /dev/tty[pqrs]* |
chmod 666 /dev/tty[pqrs]* |
|
|
# check the password temp/lock file |
# check the password temp/lock file |
if [ -f /etc/ptmp ] |
if [ -f /etc/ptmp ]; then |
then |
|
logger -s -p auth.err \ |
logger -s -p auth.err \ |
'password file may be incorrect -- /etc/ptmp exists' |
'password file may be incorrect -- /etc/ptmp exists' |
fi |
fi |
|
|
|
|
echo '.' |
echo '.' |
|
|
. /etc/rc.local |
|
|
|
if [ -f /sbin/kbd -a -f /etc/kbdtype ]; then |
if [ -f /sbin/kbd -a -f /etc/kbdtype ]; then |
kbd `cat /etc/kbdtype` |
kbd `cat /etc/kbdtype` |
fi |
fi |
|
|
|
# patch /etc/motd |
|
if [ ! -f /etc/motd ]; then |
|
install -c -o root -g wheel -m 664 /dev/null /etc/motd |
|
fi |
|
T=/tmp/_motd |
|
rm -f $T |
|
sysctl -n kern.version | sed 1q > $T |
|
echo "" >> $T |
|
sed '1,/^$/d' < /etc/motd >> $T |
|
cmp -s $T /etc/motd || cp $T /etc/motd |
|
rm -f $T |
|
|
|
if [ -f /sbin/ldconfig ]; then |
|
echo 'creating runtime link editor directory cache.' |
|
ldconfig /usr/X11R6/lib |
|
fi |
|
|
|
# Kerberos runs ONLY on the Kerberos server machine |
|
if [ X${kerberos_server} = X"YES" ]; then |
|
echo 'kerberos server'; kerberos >> /var/log/kerberos.log & |
|
fi |
|
|
|
. /etc/rc.local |
|
|
date |
date |
exit 0 |
exit 0 |