projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bug in foregrounding in /etc/init.d/rcS
[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
75103ec
..
43d0a84
100755
(executable)
--- a/
package/base-files/files/etc/init.d/network
+++ b/
package/base-files/files/etc/init.d/network
@@
-2,39
+2,22
@@
# Copyright (C) 2006 OpenWrt.org
START=40
# Copyright (C) 2006 OpenWrt.org
START=40
-STOP=40
-
-config_cb() {
- local cfg_type="$1"
-
- case "$cfg_type" in
- interface)
- append networks "$2" "$N"
- ;;
- esac
-}
+STOP=90
boot() {
boot() {
- uci_load network
setup_switch() { return 0; }
include /lib/network
setup_switch
setup_switch() { return 0; }
include /lib/network
setup_switch
- [ -s /etc/config/wireless ] || \
+ grep -qs config /etc/config/wireless && {
+ /sbin/wifi up
+ } || {
+ rm -f /etc/config/wireless
/sbin/wifi detect > /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() {
- ifup -a
- /sbin/wifi up
-}
-
-restart() {
setup_switch() { return 0; }
include /lib/network
setup_switch() { return 0; }
include /lib/network
@@
-46,3
+29,7
@@
restart() {
stop() {
ifdown -a
}
stop() {
ifdown -a
}
+
+restart() {
+ start
+}
This page took
0.021974 seconds
and
4
git commands to generate.