Changeset 17527


Ignore:
Timestamp:
2009-09-06T19:02:14+02:00 (7 years ago)
Author:
thepeople
Message:

fix nonhotpluggable networks not being brought up. Closes #2781

Location:
trunk/package/base-files/files
Files:
3 edited

Legend:

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

    r17516 r17527  
    55STOP=40 
    66 
     7config_cb() { 
     8        local cfg_type="$1" 
     9 
     10        case "$cfg_type" in 
     11                interface) 
     12                        append networks "$2" "$N" 
     13                ;; 
     14        esac 
     15} 
     16 
    717boot() { 
     18        uci_load network 
    819        setup_switch() { return 0; } 
    920 
     
    1324                /sbin/wifi detect > /etc/config/wireless 
    1425        /sbin/wifi up 
     26        for network in $networks; do 
     27                config_get startupcheck $network started 
     28                [ "$startupcheck" = "" ] && ifup $network 
     29        done 
    1530} 
    1631 
  • trunk/package/base-files/files/lib/network/config.sh

    r17217 r17527  
    154154        uci_set_state network "$config" ifname "$ifname" 
    155155        uci_set_state network "$config" device "$device" 
     156        uci_set_state network "$config" started 1 
    156157} 
    157158 
  • trunk/package/base-files/files/usr/share/udhcpc/default.script

    r16815 r17527  
    204204                                config_get aliases "$ifc" aliases 
    205205                                uci_revert_state network "$ifc" 
     206                                uci_set_state network "$ifc" started 1 
    206207                                [ -n "$device" ] && uci_set_state network "$ifc" device "$device" 
    207208                                [ -n "$ifname" ] && uci_set_state network "$ifc" ifname "$ifname" 
Note: See TracChangeset for help on using the changeset viewer.