blob: 744e5f85904253fd3d0df1b87f15040963a266fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
|