aboutsummaryrefslogtreecommitdiff
path: root/init.d/network.in
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2013-04-08 12:46:51 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2013-04-08 12:46:51 -0500
commit56f1752ce1899c455b9e97ac73da9bd68fbab2b9 (patch)
tree0b03782d3383ec913f99e9226b01050aee624d7c /init.d/network.in
parent9314ac64ead736c3e2b0d990a8b7030c16013993 (diff)
create loopback service
The loopback service handles the basic settings for the loopback interface, regardless of the network manager you are using.
Diffstat (limited to 'init.d/network.in')
-rw-r--r--init.d/network.in13
1 files changed, 4 insertions, 9 deletions
diff --git a/init.d/network.in b/init.d/network.in
index 898b0a8e..5a87a841 100644
--- a/init.d/network.in
+++ b/init.d/network.in
@@ -223,15 +223,6 @@ start()
einfo "Starting network"
routeflush
- if [ "$RC_UNAME" = "Linux" ]; then
- ifconfig lo 127.0.0.1 netmask 255.0.0.0 || cr=1
- route add -net 127.0.0.0 netmask 255.0.0.0 \
- gw 127.0.0.1 reject 2>/dev/null
- else
- ifconfig lo0 127.0.0.1 netmask 255.0.0.0 || cr=1
- route -q add -inet 127.0.0.0 -netmask 255.0.0.0 \
- 127.0.0.1 -reject || cr=1
- fi
eindent
for int in $(interfaces); do
local func= cf=
@@ -330,6 +321,10 @@ stop()
routeflush
eindent
for int in $(reverse $(interfaces u)); do
+ case "$int" in
+ lo|lo0) continue ;;
+ *) ;;
+ esac
intv=$(shell_var "$int")
eval downcmd=\$ifdown_$intv
eval cmd=\$ip_$intv