]>
git.ipfire.org Git - people/teissler/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 ########################################################################
17 .
/etc
/sysconfig
/network
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}..."
32 boot_mesg
"Bringing down the loopback interface..."
44 echo "Hostname is: $(hostname)"
49 echo "Usage: ${0} {start|stop|restart|status}"
54 # End $rc_base/init.d/localnet