]>
git.ipfire.org Git - people/mfischer/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 eval $
(/usr
/local
/bin
/readhash
/var
/ipfire
/main
/settings
)
28 boot_mesg
"Bringing up the loopback interface..."
29 ip addr add
127.0.0.1/8 label lo dev lo
33 boot_mesg
"Setting hostname to ${HOSTNAME}..."
37 if [ -z "$DOMAINNAME" ]; then
38 boot_mesg
"Setting domainname to ${DOMAINNAME}..."
39 domainname
${DOMAINNAME}
48 boot_mesg
"Bringing down the loopback interface..."
60 eval $
(/usr
/local
/bin
/readhash
/var
/ipfire
/main
/settings
)
61 echo "Hostname is: $(hostname)"
66 echo "Usage: ${0} {start|stop|restart|status}"
71 # End $rc_base/init.d/localnet