summaryrefslogtreecommitdiffstats
path: root/package/base-files/default/sbin
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-08-24 13:46:47 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-08-24 13:46:47 +0000
commit00394c57717f28bb3b9860020729cd73036a8cf8 (patch)
tree2a9100fe7572ceceffb830be783f5a9e4f661167 /package/base-files/default/sbin
parent8aff78b0096b4c2f8ec34fdcf96e55ef8bb9a24a (diff)
revert to using *_ifnames internally, too many problems with firewall, ppp, etc. otherwise
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4653 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/default/sbin')
-rwxr-xr-xpackage/base-files/default/sbin/ifup5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/base-files/default/sbin/ifup b/package/base-files/default/sbin/ifup
index 86d10d7ca..c7055d480 100755
--- a/package/base-files/default/sbin/ifup
+++ b/package/base-files/default/sbin/ifup
@@ -4,7 +4,10 @@
. /sbin/ifdown "$@"
config_get iftype "$1" type
-config_get ifname "$1" ifname
+case "$iftype" in
+ bridge) config_get ifname "$1" ifnames;;
+ *) config_get ifname "$1" ifname;;
+esac
for dev in $ifname; do
setup_interface "$dev" "$1"