From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B5597138B0E for ; Mon, 24 Oct 2016 00:23:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A26F1E0818; Mon, 24 Oct 2016 00:23:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8AC78E0818 for ; Mon, 24 Oct 2016 00:23:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8C0AC34161D for ; Mon, 24 Oct 2016 00:23:22 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 538222413 for ; Mon, 24 Oct 2016 00:23:19 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1477267973.1705b16b61bf00a1c610a34aebe112e8f28e85b6.robbat2@OpenRC> Subject: [gentoo-commits] proj/netifrc:master commit in: init.d/ X-VCS-Repository: proj/netifrc X-VCS-Files: init.d/net.lo.in X-VCS-Directories: init.d/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 1705b16b61bf00a1c610a34aebe112e8f28e85b6 X-VCS-Branch: master Date: Mon, 24 Oct 2016 00:23:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: a484d7c0-e146-4d61-b880-c3ad537824b2 X-Archives-Hash: 20e3bed06025ad2e3d4314d9006429bb commit: 1705b16b61bf00a1c610a34aebe112e8f28e85b6 Author: Robin H. Johnson gentoo org> AuthorDate: Mon Oct 24 00:12:49 2016 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Mon Oct 24 00:12:53 2016 +0000 URL: https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=1705b16b 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 gentoo.org> init.d/net.lo.in | 10 ++-------- 1 file 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