projects
/
openwrt-10.03
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add config option for autostart of network interfaces
[openwrt-10.03/.git]
/
package
/
base-files
/
default
/
lib
/
network
/
config.sh
diff --git
a/package/base-files/default/lib/network/config.sh
b/package/base-files/default/lib/network/config.sh
index 9c91a7cabf397f13c61922429430804817ea2eee..502377b6012afbd82bf54b8286a6bd4b63aa572c 100755
(executable)
--- a/
package/base-files/default/lib/network/config.sh
+++ b/
package/base-files/default/lib/network/config.sh
@@
-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)