Changeset 33425


Ignore:
Timestamp:
2012-09-15T14:50:55+02:00 (5 years ago)
Author:
jow
Message:

[package] netifd: prevent error in ifup if no /etc/config/wireless exists, properly handle wifi-iface sections which are part of multiple networks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/netifd/files/sbin/ifup

    r32062 r33425  
    5151fi 
    5252 
    53 if [ -n "$setup_wifi" ] && grep -q config /etc/config/wireless; then 
     53if [ -n "$setup_wifi" ] && grep -sq config /etc/config/wireless; then 
    5454        . /lib/functions.sh 
    5555 
     
    5959                config_get wnet "$1" network 
    6060 
    61                 if [ -n "$wdev" ] && [ "$wnet" = "$network" ]; then 
    62                         append radio_devs "$wdev" "$N" 
     61                if [ -n "$wdev" ]; then 
     62                        for wnet in $wnet; do 
     63                                if [ "$wnet" = "$network" ]; then 
     64                                        append radio_devs "$wdev" "$N" 
     65                                fi 
     66                        done 
    6367                fi 
    6468        } 
Note: See TracChangeset for help on using the changeset viewer.