aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-04-15 07:22:11 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-04-15 07:22:11 +0000
commit4766914d701eb5e15f411752a68dbfd1d1ee74e7 (patch)
treed31afe54a418a15f19f9176aa5de240c09de0b98
parent7b7299df4ae71e170cf23c2561ad9c84494eba04 (diff)
downloadupstream-4766914d701eb5e15f411752a68dbfd1d1ee74e7.tar.gz
upstream-4766914d701eb5e15f411752a68dbfd1d1ee74e7.tar.bz2
upstream-4766914d701eb5e15f411752a68dbfd1d1ee74e7.zip
fix bogus "interface not found" errors in ifup -a (#1580)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6949 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-xpackage/base-files/files/sbin/ifdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/sbin/ifdown b/package/base-files/files/sbin/ifdown
index e00a4e38da..8c36a25b48 100755
--- a/package/base-files/files/sbin/ifdown
+++ b/package/base-files/files/sbin/ifdown
@@ -5,7 +5,7 @@
[ $# = 0 ] && { echo " $0 <group>"; exit; }
[ "x$1" = "x-a" ] && {
config_cb() {
- [ -z "$2" ] || eval "$0 $2"
+ [ interface != "$1" -o -z "$2" ] || eval "$0 $2"
}
config_load network
exit