diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2016-10-23 17:12:49 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2016-10-23 17:12:53 -0700 |
commit | 1705b16b61bf00a1c610a34aebe112e8f28e85b6 (patch) | |
tree | a0bacab9f42cacabccb8a124818e43739493bb75 | |
parent | iproute2: error-check the error-behavior input. (diff) | |
download | netifrc-1705b16b61bf00a1c610a34aebe112e8f28e85b6.tar.gz netifrc-1705b16b61bf00a1c610a34aebe112e8f28e85b6.tar.bz2 netifrc-1705b16b61bf00a1c610a34aebe112e8f28e85b6.zip |
net.lo: display ALL routes
For historical reasons, we used to suppress the first route for an
interface, but this make it unclear what was being done.
Display all routes instead.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r-- | init.d/net.lo.in | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/init.d/net.lo.in b/init.d/net.lo.in index dbade70..1a8feaa 100644 --- a/init.d/net.lo.in +++ b/init.d/net.lo.in @@ -693,7 +693,7 @@ start() return 1 fi - local hideFirstroute=false first=true routes= + local first=true routes= if ${fallback}; then routes="$(_get_array "fallback_routes_${IFVAR}")" fi @@ -704,7 +704,6 @@ start() if [ "${config_0}" != "null" ]; then routes="127.0.0.0/8 via 127.0.0.1 ${routes}" - hideFirstroute=true fi fi @@ -736,12 +735,7 @@ ${routes}" *:*/*) cmd="-net ${cmd}";; *) cmd="-host ${cmd}";; esac - if ${hideFirstroute}; then - _add_route ${fam} ${cmd} >/dev/null 2>&1 - hideFirstroute=false - else - _add_route ${fam} ${cmd} >/dev/null - fi + _add_route ${fam} ${cmd} >/dev/null eend $? eoutdent done |