Ignore:
Timestamp:
2010-04-03T15:31:59+02:00 (7 years ago)
Author:
jow
Message:

[package] base-files: also regenerate wifi config if existing config contains only whitespace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/files/etc/init.d/network

    r20232 r20669  
    1010        include /lib/network 
    1111        setup_switch 
    12         [ -s /etc/config/wireless ] || \ 
     12        grep -qs config /etc/config/wireless && { 
     13                /sbin/wifi up 
     14        } || { 
     15                rm -f /etc/config/wireless 
    1316                /sbin/wifi detect > /etc/config/wireless 
    14         /sbin/wifi up 
     17        } 
    1518} 
    1619 
Note: See TracChangeset for help on using the changeset viewer.