version 1.133, 1999/10/05 10:32:56 |
version 1.134, 1999/10/05 10:54:27 |
Line 182 rm -f /var/spool/lock/LCK.* |
|
Line 182 rm -f /var/spool/lock/LCK.* |
|
rm -f /var/spool/uucp/STST/* |
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; }) |
|
|
|
# build ps databases |
|
echo 'building databases...' |
# if this kernel supports machdep.booted_kernel, use that to build the KVM |
# if this kernel supports machdep.booted_kernel, use that to build the KVM |
# db so dmesg will run work when we boot /netbsd.new, etc. |
# db so dmesg will run work when we boot /netbsd.new, etc. |
sysctl machdep 2>/dev/null | grep -q booted_kernel |
sysctl machdep 2>/dev/null | grep -q booted_kernel |
if [ $? -eq 0 ] ; then |
if [ $? -eq 0 ] ; then |
kvm_mkdb `sysctl -n machdep.booted_kernel` |
kvm_mkdb `sysctl -n machdep.booted_kernel` |
|
if [ $? -ne 0 ] ; then |
|
kvm_mkdb /netbsd |
|
fi |
|
else |
|
kvm_mkdb /netbsd |
fi |
fi |
|
dev_mkdb |
|
|
# get the system dmesg output, hopefully containing the boot messages |
# get the system dmesg output, hopefully containing the boot messages |
# $dmesg_flags is imported from /etc/rc.conf |
# $dmesg_flags is imported from /etc/rc.conf |
if checkyesno dmesg; then |
if checkyesno dmesg; then |
|
|
echo -n 'checking quotas:'; quotacheck -a; echo ' done.' |
echo -n 'checking quotas:'; quotacheck -a; echo ' done.' |
quotaon -a |
quotaon -a |
|
|
# build ps databases |
|
echo 'building databases...' |
|
kvm_mkdb /netbsd |
|
dev_mkdb |
|
|
|
chmod 666 /dev/tty[pqrs]* |
chmod 666 /dev/tty[pqrs]* |
|
|
# check the password temp/lock file |
# check the password temp/lock file |