/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

Follow

@davefischer I really "like" how the second most important thing was was bloat about "restricted rights" ...

And yes, systemd is the Windowization of *ix, the root cause to invent Time Travel to fix this shit before it ever started ...

· · Web · 0 · 0 · 2
Sign in to participate in the conversation
UU's Mastodon

Mastodon ist ein soziales Netzwerk. Es basiert auf offenen Web-Protokollen und freier, quelloffener Software. Es ist dezentral (so wie eMail). Die ist der Teil von uu.org, 0xdecafbad.net und amateurinter.net.