/etc/rc used to be a small shell script that you added commands to if you wanted them run at startup. It remained simple through 7th Ed. After that it exploded into the SysV style mess that was eventually replaced with the unnamed horror.
The recently recovered UNIX V4 /etc/rc:
rm -f /etc/mtab
chdir /tmp
rm -f [a-t]* [x-z]* v*
chdir /
/etc/update
("cd" was "chdir", which is still the name of the system call in linux. /etc/update forks and runs in the background, doing a "sync" on all mounted drives every 30 seconds.)
An example 7th Edition /etc/rc:
PATH=/bin:/usr/bin
echo "Restricted rights: Use, duplication, or disclosure
is subject to restrictions stated in your contract with
Western Electric Company, Inc." >/dev/console
rm /etc/mtab
cat /dev/null >/etc/utmp
/etc/mount /dev/rp3 /usr
rm -f /usr/spool/lpd/lock
: /etc/accton /usr/adm/acct
rm -f /usr/tmp/*
rm -f /tmp/*
/etc/update
date >/dev/console
/etc/cron
#RetroComputing #Unix #PDP11