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

[package] ppp: extend the r26742 change to ip-down too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/ppp/files/etc/ppp/ip-down

    r19873 r26743  
    99export PPP_IFACE PPP_TTY PPP_SPEED PPP_LOCAL PPP_REMOTE PPP_IPPARAM 
    1010[ -z "$PPP_IPPARAM" ] || { 
    11         env -i ACTION="ifdown" INTERFACE="$PPP_IPPARAM" DEVICE="$PPP_IFACE" PROTO=ppp /sbin/hotplug-call "iface" 
    12  
    13         # remove the interface's network state 
    14         uci_revert_state network "$PPP_IPPARAM" 
     11        case "$PPP_IFACE" in 
     12                # only handle uci managed interfaces here, others are done by generic hotplug 
     13                3g-*|ppp-*|pppoa-*|pppoe-*|pptp-*) 
     14                        env -i ACTION="ifdown" INTERFACE="$PPP_IPPARAM" DEVICE="$PPP_IFACE" PROTO=ppp /sbin/hotplug-call "iface" 
     15                        uci_revert_state network "$PPP_IPPARAM" 
     16                ;; 
     17        esac 
    1518} 
    1619 
Note: See TracChangeset for help on using the changeset viewer.