Ignore:
Timestamp:
2006-04-05T04:09:22+02:00 (11 years ago)
Author:
nbd
Message:

large init script cleanup and merge of whiterussian changes, new dnsmasq config handling

File:
1 edited

Legend:

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

    r2993 r3588  
    22[ $# = 0 ] && { echo "  $0 <group>"; exit; } 
    33. /etc/functions.sh 
    4 . /etc/network.overrides 
    5 [ "$FAILSAFE" != "true" -a -e /etc/config/network ] && . /etc/config/network 
     4. /etc/config/network 
    65 
    76debug "### ifdown $type ###" 
    87type=$1 
    98 
    10 if_proto=$(nvram get ${type}_proto) 
    11 if=$(nvram get ${type}_ifname) 
     9eval "if_proto=\"\${${type}_proto}\"" 
     10eval "if=\"\${${type}_ifname}\"" 
     11[ "${if%%[0-9]}" = "ppp" ] && eval "if=\"\${${type}_device}\"" 
    1212 
    1313case "$if_proto" in 
     
    1616esac 
    1717 
    18 [ "${if%%[0-9]*}" = "ppp" ] && if="$(nvram get ${type}_device)" 
    19  
    20 if [ "${if%%[0-9]}" = "br" ]; then 
    21         for sif in $(nvram get ${type}_ifnames); do 
    22                 hotplug_dev unregister "$sif" 
    23         done 
    24 fi 
    25          
    2618hotplug_dev unregister "$if" 
Note: See TracChangeset for help on using the changeset viewer.