diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2013-04-08 12:46:51 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2013-04-08 12:46:51 -0500 |
commit | 56f1752ce1899c455b9e97ac73da9bd68fbab2b9 (patch) | |
tree | 0b03782d3383ec913f99e9226b01050aee624d7c /init.d/network.in | |
parent | 9314ac64ead736c3e2b0d990a8b7030c16013993 (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.in | 13 |
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 |