diff options
author | Yun Zheng Hu <hu@fox-it.com> | 2011-08-20 14:02:04 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2011-08-20 14:10:07 -0500 |
commit | a029dee59b22bdfb30fefb90c9409be813c1f824 (patch) | |
tree | cf05277837f6c71e38aa6b46a3afbcb17b8e8e65 | |
parent | 2330978300cd3a677e2a6b70ddc8c2825af03920 (diff) |
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.in | 4 |
1 files changed, 3 insertions, 1 deletions
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) |