Date:2011-04-20 14:02:04 (2 years 28 days ago)
Author:jow
Commit:920b7c5334b0064e4cf2e3007fda5450c7b6249b
Message:[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
Files: package/ppp/Makefile (2 diffs)
package/ppp/files/etc/ppp/ip-up (1 diff)

Change Details

package/ppp/Makefile
11#
2# Copyright (C) 2006-2010 OpenWrt.org
2# Copyright (C) 2006-2011 OpenWrt.org
33#
44# This is free software, licensed under the GNU General Public License v2.
55# See /LICENSE for more information.
...... 
1010
1111PKG_NAME:=ppp
1212PKG_VERSION:=2.4.4
13PKG_RELEASE:=16
13PKG_RELEASE:=17
1414
1515PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
1616PKG_SOURCE_URL:=ftp://ftp.samba.org/pub/ppp/
package/ppp/files/etc/ppp/ip-up
2020    [ -n "$dns" ] && add_dns "$PPP_IPPARAM" $dns
2121}
2222
23[ -z "$PPP_IPPARAM" ] || env -i ACTION="ifup" INTERFACE="$PPP_IPPARAM" DEVICE="$PPP_IFACE" PROTO=ppp /sbin/hotplug-call "iface"
23[ -z "$PPP_IPPARAM" ] || {
24    case "$PPP_IFACE" in
25        # only handle uci managed interfaces here, others are done by generic hotplug
26        3g-*|ppp-*|pppoa-*|pppoe-*|pptp-*)
27            env -i ACTION="ifup" INTERFACE="$PPP_IPPARAM" DEVICE="$PPP_IFACE" PROTO=ppp /sbin/hotplug-call "iface"
28        ;;
29    esac
30}
2431
2532[ -d /etc/ppp/ip-up.d ] && {
2633    for SCRIPT in /etc/ppp/ip-up.d/*

Archive Download the corresponding diff file



interactive