Ignore:
Timestamp:
2011-11-08T15:42:58+01:00 (5 years ago)
Author:
jow
Message:

[package] base-files: properly handle wifi ifaces with no network attached, useful for unmanaged interfaces like used for batman or monitoring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/files/sbin/wifi

    r28745 r28860  
    130130 
    131131        [ -f "/var/run/$iface.pid" ] && kill "$(cat /var/run/${iface}.pid)" 2>/dev/null 
    132         include /lib/network 
    133         scan_interfaces 
    134         setup_interface "$iface" "$config" "" "$vifmac" 
     132        [ -z "$config" ] || { 
     133                include /lib/network 
     134                scan_interfaces 
     135                setup_interface "$iface" "$config" "" "$vifmac" 
     136        } 
    135137)} 
    136138 
Note: See TracChangeset for help on using the changeset viewer.