From: nbd Date: Sun, 15 Apr 2007 07:22:11 +0000 (+0000) Subject: fix bogus "interface not found" errors in ifup -a (#1580) X-Git-Url: https://git.archive.openwrt.org/?a=commitdiff_plain;h=21479fd2fd326f1096f4f4d32f1e7eb56bcafdfb;p=openwrt.git 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 --- 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 "; exit; } [ "x$1" = "x-a" ] && { config_cb() { - [ -z "$2" ] || eval "$0 $2" + [ interface != "$1" -o -z "$2" ] || eval "$0 $2" } config_load network exit