Changeset 21389


Ignore:
Timestamp:
2010-05-06T21:50:22+02:00 (8 years ago)
Author:
jow
Message:

[package] base-files: add a coldplug_interface_* hook to bring up non-hotpluggable interfaces on boot

File:
1 edited

Legend:

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

    r20669 r21389  
    1616                /sbin/wifi detect > /etc/config/wireless 
    1717        } 
     18 
     19        scan_interfaces 
     20 
     21        local ifc 
     22        for ifc in $interfaces; do 
     23                local proto 
     24                config_get proto "$ifc" proto 
     25 
     26                type "coldplug_interface_$proto" >/dev/null && \ 
     27                        coldplug_interface_$proto "$ifc" 
     28        done 
    1829} 
    1930 
Note: See TracChangeset for help on using the changeset viewer.