more tightening up of permissions
[unix-history] / usr / src / etc / netstart
... / ...
CommitLineData
1#!/bin/sh -
2#
3# @(#)netstart 8.1 (Berkeley) %G%
4
5routedflags=-q
6timedflags=YES
7rwhod=NO
8
9# myname is my symbolic name
10# my-netmask is specified in /etc/networks
11#
12hostname=myname.my.domain
13hostname $hostname
14
15ifconfig ace0 inet $hostname netmask my-netmask
16ifconfig ex0 inet $hostname netmask my-netmask
17ifconfig imp0 inet $hostname
18ifconfig le0 inet $hostname netmask my-netmask
19ifconfig ne0 inet $hostname netmask my-netmask
20ifconfig we0 inet $hostname netmask my-netmask
21
22# For en ethernet interface, load microcode before ifconfig
23# /etc/enpload /dev/enp0ram /etc/enpcode > /dev/console 2>&1
24ifconfig en0 inet $hostname netmask my-netmask
25
26# set the address for the loopback interface
27ifconfig lo0 inet localhost
28
29# use loopback, not the wire
30route add $hostname localhost