version 1.375, 2011/07/08 01:43:59 |
version 1.376, 2011/07/08 02:02:02 |
|
|
fi |
fi |
|
|
# clean up left-over files |
# clean up left-over files |
rm -f /etc/nologin |
rm -f /etc/nologin /var/spool/lock/LCK.* /var/spool/uucp/STST/* |
rm -f /var/spool/lock/LCK.* |
|
rm -f /var/spool/uucp/STST/* |
|
(cd /var/run && { rm -rf -- *; install -c -m 664 -g utmp /dev/null utmp; }) |
(cd /var/run && { rm -rf -- *; install -c -m 664 -g utmp /dev/null utmp; }) |
(cd /var/authpf && rm -rf -- *) |
(cd /var/authpf && rm -rf -- *) |
|
|
|
|
echo -n 'starting initial daemons:' |
echo -n 'starting initial daemons:' |
|
|
start_daemon portmap |
start_daemon portmap |
|
if [ X"`domainname`" != X"" ]; then |
[ X"`domainname`" != X"" ] && \ |
|
start_daemon ypserv ypldap ypbind yppasswdd |
start_daemon ypserv ypldap ypbind yppasswdd |
|
fi |
start_daemon mountd nfsd lockd statd |
start_daemon mountd nfsd lockd statd |
|
|
if [ X"${amd}" = X"YES" -a -e ${amd_master} ]; then |
if [ X"${amd}" = X"YES" -a -e ${amd_master} ]; then |
|
|
echo '.' |
echo '.' |
|
|
mount -a |
mount -a |
|
|
swapctl -A -t noblk |
swapctl -A -t noblk |
|
|
# /var/crash should be a directory or a symbolic link |
# /var/crash should be a directory or a symbolic link |
|
|
quotaon -a |
quotaon -a |
fi |
fi |
|
|
# build kvm(3) databases |
kvm_mkdb # build kvm(3) databases |
kvm_mkdb |
|
dev_mkdb |
dev_mkdb |
|
|
chmod 666 /dev/tty[pqrstuvwxyzPQRST]* |
chmod 666 /dev/tty[pqrstuvwxyzPQRST]* |
chown root:wheel /dev/tty[pqrstuvwxyzPQRST]* |
chown root:wheel /dev/tty[pqrstuvwxyzPQRST]* |
|
|
# check the password temp/lock file |
# check the password temp/lock file |
if [ -f /etc/ptmp ]; then |
if [ -f /etc/ptmp ]; 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 clearing /tmp |
echo clearing /tmp |
|
|
ldconfig $shlib_dirs |
ldconfig $shlib_dirs |
fi |
fi |
|
|
if [ -x /usr/libexec/vi.recover ]; then |
echo 'preserving editor files.'; /usr/libexec/vi.recover |
echo 'preserving editor files.'; /usr/libexec/vi.recover |
|
fi |
|
|
|
echo -n 'starting network daemons:' |
echo -n 'starting network daemons:' |
|
|
|
|
if [ X"${fw}" = X"0" ]; then |
if [ X"${fw}" = X"0" ]; then |
start_daemon rtsold |
start_daemon rtsold |
else |
else |
start_daemon route6d |
start_daemon route6d rtadvd |
start_daemon rtadvd |
|
fi |
fi |
fi |
fi |
|
|
|
|
# If rc.firstime exists, run it just once, and make sure it is deleted |
# If rc.firstime exists, run it just once, and make sure it is deleted |
if [ -f /etc/rc.firsttime ]; then |
if [ -f /etc/rc.firsttime ]; then |
mv /etc/rc.firsttime /etc/rc.firsttime.run |
mv /etc/rc.firsttime /etc/rc.firsttime.run |
. /etc/rc.firsttime.run 2>&1 | mail -s 'rc.firsttime output' root >/dev/null |
. /etc/rc.firsttime.run 2>&1 | mail -s 'rc.firsttime output' \ |
|
root >/dev/null |
fi |
fi |
rm -f /etc/rc.firsttime.run |
rm -f /etc/rc.firsttime.run |
|
|