386BSD 0.1 development
authorWilliam F. Jolitz <wjolitz@soda.berkeley.edu>
Sat, 30 Mar 1991 21:14:24 +0000 (13:14 -0800)
committerWilliam F. Jolitz <wjolitz@soda.berkeley.edu>
Sat, 30 Mar 1991 21:14:24 +0000 (13:14 -0800)
Work on file usr/othersrc/etc/netstart

Co-Authored-By: Lynne Greer Jolitz <ljolitz@cardio.ucsf.edu>
Synthesized-from: 386BSD-0.1

usr/othersrc/etc/netstart [new file with mode: 0644]

diff --git a/usr/othersrc/etc/netstart b/usr/othersrc/etc/netstart
new file mode 100644 (file)
index 0000000..744e5f8
--- /dev/null
@@ -0,0 +1,29 @@
+#!/bin/sh -
+#
+#      @(#)netstart    5.9 (Berkeley) 3/30/91
+
+routedflags=-q
+timedflags=YES
+rwhod=NO
+
+# myname is my symbolic name
+# my-netmask is specified in /etc/networks
+#
+hostname=myname.my.domain
+hostname $hostname
+
+ifconfig imp0 inet $hostname
+ifconfig ace0 inet $hostname netmask my-netmask
+ifconfig ex0 inet $hostname netmask my-netmask
+ifconfig we0 inet $hostname netmask my-netmask
+ifconfig ne0 inet $hostname netmask my-netmask
+
+# for en ethernet interface, load microcode before ifconfig
+# /etc/enpload /dev/enp0ram /etc/enpcode       > /dev/console 2>&1
+ifconfig en0 inet $hostname netmask my-netmask
+
+# set the address for the loopback interface
+ifconfig lo0 inet localhost
+
+# use loopback, not the wire
+route add $hostname localhost