Changeset 26742


Ignore:
Timestamp:
2011-04-20T14:02:04+02:00 (7 years ago)
Author:
jow
Message:

[package] ppp: prevent duplicate hotplug for non uci managed ppp interfaces (#9275)

Location:
trunk/package/ppp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/ppp/Makefile

    r25828 r26742  
    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. 
     
    1111PKG_NAME:=ppp 
    1212PKG_VERSION:=2.4.4 
    13 PKG_RELEASE:=16 
     13PKG_RELEASE:=17 
    1414 
    1515PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
  • trunk/package/ppp/files/etc/ppp/ip-up

    r21392 r26742  
    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 ] && { 
Note: See TracChangeset for help on using the changeset viewer.