aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/default/sbin/ifup
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-10-24 23:59:08 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-10-24 23:59:08 +0000
commit315f8e954bf209cc2de0dfd423aaa0611afb869d (patch)
tree404cdd638c2d7667df57ed993e9aa3cccc9e55ca /package/base-files/default/sbin/ifup
parent2f78952da8a9be5ca46dc3b705aa517072c9cec6 (diff)
downloadupstream-315f8e954bf209cc2de0dfd423aaa0611afb869d.tar.gz
upstream-315f8e954bf209cc2de0dfd423aaa0611afb869d.tar.bz2
upstream-315f8e954bf209cc2de0dfd423aaa0611afb869d.zip
make network scripts more robust, prevent multiple instances of pppd and udhcpc for the same interface
SVN-Revision: 5290
Diffstat (limited to 'package/base-files/default/sbin/ifup')
-rwxr-xr-xpackage/base-files/default/sbin/ifup5
1 files changed, 1 insertions, 4 deletions
diff --git a/package/base-files/default/sbin/ifup b/package/base-files/default/sbin/ifup
index c7055d4807..81ec2c0890 100755
--- a/package/base-files/default/sbin/ifup
+++ b/package/base-files/default/sbin/ifup
@@ -4,10 +4,7 @@
. /sbin/ifdown "$@"
config_get iftype "$1" type
-case "$iftype" in
- bridge) config_get ifname "$1" ifnames;;
- *) config_get ifname "$1" ifname;;
-esac
+config_get ifname "$1" device
for dev in $ifname; do
setup_interface "$dev" "$1"