add config option for autostart of network interfaces
[openwrt-10.03/.git] / package / base-files / default / lib / network / config.sh
index 9c91a7cabf397f13c61922429430804817ea2eee..502377b6012afbd82bf54b8286a6bd4b63aa572c 100755 (executable)
@@ -27,6 +27,11 @@ scan_interfaces() {
        local mode iftype iface ifname device
        interfaces=
        config_cb() {
+               case "$1" in
+                       interface)
+                               config_set "$2" auto 1
+                       ;;
+               esac
                config_get iftype "$CONFIG_SECTION" TYPE
                case "$iftype" in
                        interface)