]>
git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/initscripts/system/localnet
2 ########################################################################
3 # Begin $rc_base/init.d/localnet
5 # Description : Loopback device
7 # Authors : Gerard Beekmans - gerard@linuxfromscratch.org
13 ########################################################################
20 [ -n "${DOMAINNAME}" ] && echo "search ${DOMAINNAME}"
21 echo "nameserver 127.0.0.1"
27 echo "127.0.0.1 localhost.localdomain localhost"
33 eval $
(/usr
/local
/bin
/readhash
/var
/ipfire
/main
/settings
)
34 boot_mesg
"Bringing up the loopback interface..."
35 ip addr add
127.0.0.1/8 label lo dev lo
39 boot_mesg
"Setting hostname to ${HOSTNAME}.${DOMAINNAME}..."
40 hostname
"${HOSTNAME}.${DOMAINNAME}"
51 boot_mesg
"Bringing down the loopback interface..."
63 eval $
(/usr
/local
/bin
/readhash
/var
/ipfire
/main
/settings
)
64 echo "Hostname is: $(hostname)"
69 echo "Usage: ${0} {start|stop|restart|status}"
74 # End $rc_base/init.d/localnet