diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-04-20 12:02:04 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-04-20 12:02:04 +0000 |
commit | 920b7c5334b0064e4cf2e3007fda5450c7b6249b (patch) | |
tree | 3ac6cf576a2176317619af6ec9c221ce0ad31cd7 /package/ppp/files/etc | |
parent | 8d0ec8922c6a02dc55f993212c74c8ad0823fffb (diff) |
[package] ppp: prevent duplicate hotplug for non uci managed ppp interfaces (#9275)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26742 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ppp/files/etc')
-rwxr-xr-x | package/ppp/files/etc/ppp/ip-up | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/package/ppp/files/etc/ppp/ip-up b/package/ppp/files/etc/ppp/ip-up index 3895929539..353f667895 100755 --- a/package/ppp/files/etc/ppp/ip-up +++ b/package/ppp/files/etc/ppp/ip-up @@ -20,7 +20,14 @@ export PPP_IFACE PPP_TTY PPP_SPEED PPP_LOCAL PPP_REMOTE PPP_IPPARAM [ -n "$dns" ] && add_dns "$PPP_IPPARAM" $dns } -[ -z "$PPP_IPPARAM" ] || env -i ACTION="ifup" INTERFACE="$PPP_IPPARAM" DEVICE="$PPP_IFACE" PROTO=ppp /sbin/hotplug-call "iface" +[ -z "$PPP_IPPARAM" ] || { + case "$PPP_IFACE" in + # only handle uci managed interfaces here, others are done by generic hotplug + 3g-*|ppp-*|pppoa-*|pppoe-*|pptp-*) + env -i ACTION="ifup" INTERFACE="$PPP_IPPARAM" DEVICE="$PPP_IFACE" PROTO=ppp /sbin/hotplug-call "iface" + ;; + esac +} [ -d /etc/ppp/ip-up.d ] && { for SCRIPT in /etc/ppp/ip-up.d/* |