Ignore:
Timestamp:
2005-09-05T16:16:00+02:00 (11 years ago)
Author:
nbd
Message:

cleanups in networking scripts, fix for pptp and pppoe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/whiterussian/openwrt/package/base-files/default/sbin/ifdown

    r1629 r1854  
    55debug "### ifdown $type ###" 
    66if=$(nvram get ${type}_ifname) 
    7 if_valid $if || exit  
    8 $DEBUG ifconfig $if down 
     7proto=$(nvram get ${type}_proto) 
     8if_valid $if && $DEBUG ifconfig $if down 
    99kill $(cat /var/run/${if}.pid 2>&-) 2>&- 
     10[ "$if" = "ppp0" ] && killall pppd 
     11killall ifup.$proto >&- 2>&- 
Note: See TracChangeset for help on using the changeset viewer.