projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix nonhotpluggable networks not being brought up. Closes #2781
[openwrt.git]
/
package
/
base-files
/
files
/
etc
/
init.d
/
network
diff --git
a/package/base-files/files/etc/init.d/network
b/package/base-files/files/etc/init.d/network
index
e77db02
..
75103ec
100755
(executable)
--- a/
package/base-files/files/etc/init.d/network
+++ b/
package/base-files/files/etc/init.d/network
@@
-4,7
+4,18
@@
START=40
STOP=40
START=40
STOP=40
+config_cb() {
+ local cfg_type="$1"
+
+ case "$cfg_type" in
+ interface)
+ append networks "$2" "$N"
+ ;;
+ esac
+}
+
boot() {
boot() {
+ uci_load network
setup_switch() { return 0; }
include /lib/network
setup_switch() { return 0; }
include /lib/network
@@
-12,6
+23,10
@@
boot() {
[ -s /etc/config/wireless ] || \
/sbin/wifi detect > /etc/config/wireless
/sbin/wifi up
[ -s /etc/config/wireless ] || \
/sbin/wifi detect > /etc/config/wireless
/sbin/wifi up
+ for network in $networks; do
+ config_get startupcheck $network started
+ [ "$startupcheck" = "" ] && ifup $network
+ done
}
start() {
}
start() {
This page took
0.023525 seconds
and
4
git commands to generate.