init.d/loopback.in: drop the route to the loopback interface on Linux

This is related to #103.
This commit is contained in:
William Hubbs 2016-11-03 12:47:01 -05:00
parent bf539f2196
commit 4f9bd7e4db

View File

@ -22,11 +22,9 @@ start()
ebegin "Bringing up network interface lo"
if command -v ip > /dev/null 2>&1; then
ip addr add 127.0.0.1/8 dev lo brd +
ip route add 127.0.0.0/8 dev lo
ip link set lo up
else
ifconfig lo 127.0.0.1 netmask 255.0.0.0
route add -net 127.0.0.0 netmask 255.0.0.0 gw 127.0.0.1
fi
else
ebegin "Bringing up network interface lo0"