pdp11v/etc/rc
# @(#)rc.sh 1.7
TZ=EST5EDT
export TZ
if [ ! -f /etc/mnttab ]
then
> /etc/mnttab
/etc/devnm / | grep -v swap | grep -v root | /etc/setmnt
fi
set `who -r`
if [ $7 = 2 ]
then
: put mounts here
rm -f /usr/adm/acct/nite/lock*
/usr/lib/ex2.15preserve -
/bin/su - adm -c /usr/lib/acct/startup
echo process accounting started
/usr/lib/errdemon
echo errdemon started
# /bin/su - sys -c "/usr/lib/sa/sadc /usr/adm/sa/sa`date +%d` &"
mv /usr/adm/sulog /usr/adm/OLDsulog
mv /usr/adm/cronlog /usr/adm/OLDcronlog
> /usr/adm/cronlog
/etc/cron
echo cron started
rm -f /tmp/*
rm -f /usr/spool/uucp/LCK*
# rm -f /usr/spool/lpd/lock
# rm -f /usr/spool/vpd/lock
# rm -f /usr/spool/dpd/lock
# rm -f /usr/spool/dpd/glock
# /usr/lib/lpd
# /usr/lib/dpd
fi