aboutsummaryrefslogtreecommitdiff
path: root/init.d/loopback.in
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2016-10-24 14:19:22 -0700
committerWilliam Hubbs <w.d.hubbs@gmail.com>2016-10-25 10:49:14 -0500
commit003657c973ea338a19f2b7294190af9d76cf5cea (patch)
tree4085cc8128f82027d43724816b9301e43a6f2853 /init.d/loopback.in
parent4fd144c0a6526963c70f18cb34a65354c2f0a48c (diff)
init.d/loopback: drop scope on loopback
Busybox does not support the 'scope' argument on 'ip address add' or 'ip route add', this is documented in BUSYBOX.md, but is no longer actually needed, as the kernel does get it right without manual specification, and the ifconfig variant already relies on the kernel to get it right. This is part of #103. X-Gentoo-Bug: 487208 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=487208
Diffstat (limited to 'init.d/loopback.in')
-rw-r--r--init.d/loopback.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.d/loopback.in b/init.d/loopback.in
index f76dfce6..59bdae29 100644
--- a/init.d/loopback.in
+++ b/init.d/loopback.in
@@ -21,8 +21,8 @@ start()
if [ "$RC_UNAME" = Linux ]; then
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 + scope host
- ip route add 127.0.0.0/8 dev lo scope host
+ 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