add config option for autostart of network interfaces
[openwrt.git] / package / base-files / default / lib / network / config.sh
index 9c91a7c..502377b 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)