Ignore:
Timestamp:
2011-11-03T21:02:25+01:00 (5 years ago)
Author:
nbd
Message:

base-files: load modules early, run wifi detect afterwards and only then process uci defaults

this allows uci-defaults scripts to override wifi settings

File:
1 edited

Legend:

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

    r28306 r28733  
    5353        [ -f /proc/net/vlan/config ] && vconfig set_name_type DEV_PLUS_VID_NO_PAD 
    5454 
    55         apply_uci_config 
    56         config_load system 
    57         config_foreach system_config system 
    58          
    5955        mkdir -p /var/run 
    6056        mkdir -p /var/log 
     
    6965        grep -q debugfs /proc/filesystems && mount -t debugfs debugfs /sys/kernel/debug 
    7066        [ "$FAILSAFE" = "true" ] && touch /tmp/.failsafe 
     67 
     68        load_modules /etc/modules.d/* 
     69 
     70        /sbin/wifi detect > /tmp/wireless.tmp 
     71        [ -s /tmp/wireless.tmp ] && { 
     72                cat /tmp/wireless.tmp >> /etc/config/wireless 
     73        } 
     74        rm -f /tmp/wireless.tmp 
     75 
     76        apply_uci_config 
     77        config_load system 
     78        config_foreach system_config system 
    7179 
    7280        killall -q hotplug2 
     
    8795        } 
    8896 
    89         load_modules /etc/modules.d/* 
    90  
    9197        # another round of USB coldplugging to kick devices into operation which lacked drivers before 
    9298        for dev in /sys/bus/usb/devices/*/uevent; do 
Note: See TracChangeset for help on using the changeset viewer.