28 lines
566 B
Plaintext
28 lines
566 B
Plaintext
# /etc/rc - generic system configuration script
|
|
|
|
PATH=/usr/bin:/bin:/sbin; export PATH
|
|
|
|
#set clock to GMT
|
|
#clock -u -s
|
|
|
|
# update syncs the filesystems every 30 seconds
|
|
update &
|
|
|
|
# remove /etc/mtab* so mount creates the /etc/mtab file
|
|
rm -f /etc/mtab* /etc/nologin
|
|
|
|
# mount all partitions specified in /etc/fstab
|
|
mount -av
|
|
# mount swap partition specified in /etc/fstab
|
|
swapon -a
|
|
|
|
# tmp and usr may be mounted, so we do these rm's after mount
|
|
rm -f /usr/spool/uucp/LCK*
|
|
rm -rf /tmp/*
|
|
|
|
# remove /etc/utmp and touch it
|
|
rm -f /etc/utmp
|
|
touch /etc/utmp
|
|
|
|
sh /etc/rc.local
|