From a029dee59b22bdfb30fefb90c9409be813c1f824 Mon Sep 17 00:00:00 2001 From: Yun Zheng Hu Date: Sat, 20 Aug 2011 14:02:04 -0500 Subject: [PATCH] Do not print "null" or "noop" when configuring an interface Note by william hubbs: I modified the patch to compare "null" and "noop" with $1 instead of ${config}. Reported-by: Yun Zheng Hu X-Gentoo-Bug: 379577 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=379577 --- init.d/net.lo.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init.d/net.lo.in b/init.d/net.lo.in index 5969beed..2f052ca6 100644 --- a/init.d/net.lo.in +++ b/init.d/net.lo.in @@ -545,7 +545,9 @@ start() [ -z "${config}" ] && break set -- ${config} - ebegin "$1" + if [ "$1" != "null" -a "$1" != "noop" ]; then + ebegin "$1" + fi eindent case "$1" in noop)