BSD 4_3 development
authorCSRG <csrg@ucbvax.Berkeley.EDU>
Fri, 6 Jun 1986 07:01:13 +0000 (23:01 -0800)
committerCSRG <csrg@ucbvax.Berkeley.EDU>
Fri, 6 Jun 1986 07:01:13 +0000 (23:01 -0800)
Work on file usr/src/sys/dist/rc.local

Synthesized-from: CSRG/cd1/4.3

usr/src/sys/dist/rc.local [new file with mode: 0644]

diff --git a/usr/src/sys/dist/rc.local b/usr/src/sys/dist/rc.local
new file mode 100644 (file)
index 0000000..6fc32da
--- /dev/null
@@ -0,0 +1,44 @@
+PATH=/etc:/bin:/usr/ucb:/usr/bin
+
+# myname is my symbolic name
+# myhostid is my internet address in #.#.#.# format
+# my-netmask is specified in /etc/networks
+#
+hostname myname.my.domain
+ifconfig imp0 netmask my-netmask `hostname`
+ifconfig en0 netmask my-netmask `hostname`
+ifconfig lo0 localhost
+route add `hostname` localhost 0
+hostid `hostname`
+
+strings /vmunix | grep UNIX >/tmp/t1
+tail +2 /etc/motd >>/tmp/t1
+mv /tmp/t1 /etc/motd
+chmod 666 /etc/motd
+
+# syslogd doesn't belong here, but needs to be started before the others.
+if [ -f /etc/syslogd ]; then
+                       echo 'starting system logger'   >/dev/console
+       rm -f /dev/log
+       /etc/syslogd
+fi
+
+               echo -n 'checking for core dump... '    >/dev/console
+savecore /a/crash                                      >/dev/console 2>&1
+               echo ''                                 >/dev/console
+
+                       echo -n starting local daemons: >/dev/console
+#if [ -f /etc/routed ]; then
+#      /etc/routed;            echo -n ' routed'       >/dev/console
+#fi
+if [ -f /etc/named ]; then
+       /etc/named /etc/named.boot; echo -n ' named'    >/dev/console
+fi
+#if [ -f /etc/timed ]; then
+#      /etc/timed -M;          echo -n ' timed'        >/dev/console
+#fi
+if [ -f /usr/lib/sendmail ]; then
+       (cd /usr/spool/mqueue; rm -f lf*)
+       /usr/lib/sendmail -bd -q30m; echo -n ' sendmail'>/dev/console
+fi
+                               echo '.'                >/dev/console