summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYun Zheng Hu <hu@fox-it.com>2011-08-20 14:02:04 -0500
committerWilliam Hubbs <williamh@gentoo.org>2011-08-20 14:10:07 -0500
commita029dee59b22bdfb30fefb90c9409be813c1f824 (patch)
treecf05277837f6c71e38aa6b46a3afbcb17b8e8e65
parent2330978300cd3a677e2a6b70ddc8c2825af03920 (diff)
downloadopenrc-a029dee59b22bdfb30fefb90c9409be813c1f824.tar.gz
openrc-a029dee59b22bdfb30fefb90c9409be813c1f824.tar.bz2
openrc-a029dee59b22bdfb30fefb90c9409be813c1f824.tar.xz
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 <hu@fox-it.com> X-Gentoo-Bug: 379577 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=379577
-rw-r--r--init.d/net.lo.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/init.d/net.lo.in b/init.d/net.lo.in
index 5969bee..2f052ca 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)