summaryrefslogtreecommitdiffstats
path: root/etc/netstart
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1993-06-20 13:41:45 +0000
committerrgrimes <rgrimes@FreeBSD.org>1993-06-20 13:41:45 +0000
commit241ccdeaf33c080d675cd85c358a16633866cf81 (patch)
treec84dd7ab382aa1dba3e4756697763fde81eccd04 /etc/netstart
parent146bcedccdd97829716f102265608ee44a35d3a1 (diff)
downloadFreeBSD-src-241ccdeaf33c080d675cd85c358a16633866cf81.zip
FreeBSD-src-241ccdeaf33c080d675cd85c358a16633866cf81.tar.gz
Initial import of 386BSD 0.1 othersrc/etc
Diffstat (limited to 'etc/netstart')
-rwxr-xr-xetc/netstart29
1 files changed, 29 insertions, 0 deletions
diff --git a/etc/netstart b/etc/netstart
new file mode 100755
index 0000000..744e5f8
--- /dev/null
+++ b/etc/netstart
@@ -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
OpenPOWER on IntegriCloud