fix bogus "interface not found" errors in ifup -a (#1580)
authorFelix Fietkau <nbd@openwrt.org>
Sun, 15 Apr 2007 07:22:11 +0000 (07:22 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 15 Apr 2007 07:22:11 +0000 (07:22 +0000)
SVN-Revision: 6949

package/base-files/files/sbin/ifdown

index e00a4e38da39c98cd656d19c9e6f3d456665fcfa..8c36a25b48d2bfc4ec8c494bf39f1d7fea820a94 100755 (executable)
@@ -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