]>
git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/initscripts/init.d/localnet
2 ########################################################################
3 # Begin $rc_base/init.d/localnet
5 # Description : Loopback device
7 # Authors : Gerard Beekmans - gerard@linuxfromscratch.org
13 ########################################################################
20 eval $
(/usr
/local
/bin
/readhash
/var
/ipfire
/main
/settings
)
21 boot_mesg
"Bringing up the loopback interface..."
22 ip addr add
127.0.0.1/8 label lo dev lo
26 boot_mesg
"Setting hostname to ${HOSTNAME}..."
30 if [ -z "$DOMAINNAME" ]; then
31 boot_mesg
"Setting domainname to ${DOMAINNAME}..."
32 domainname
${DOMAINNAME}
38 boot_mesg
"Bringing down the loopback interface..."
50 eval $
(/usr
/local
/bin
/readhash
/var
/ipfire
/main
/settings
)
51 echo "Hostname is: $(hostname)"
56 echo "Usage: ${0} {start|stop|restart|status}"
61 # End $rc_base/init.d/localnet