projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[package] base-files: also regenerate wifi config if existing config contains only...
[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
5255651
..
43d0a84
100755
(executable)
--- a/
package/base-files/files/etc/init.d/network
+++ b/
package/base-files/files/etc/init.d/network
@@
-2,24
+2,25
@@
# Copyright (C) 2006 OpenWrt.org
START=40
# Copyright (C) 2006 OpenWrt.org
START=40
-STOP=
4
0
+STOP=
9
0
boot() {
setup_switch() { return 0; }
include /lib/network
setup_switch
boot() {
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
+ }
}
start() {
}
start() {
- ifup -a
- /sbin/wifi up
-}
-
-restart() {
+ setup_switch() { return 0; }
+
+ include /lib/network
setup_switch
ifup -a
/sbin/wifi up
setup_switch
ifup -a
/sbin/wifi up
@@
-28,3
+29,7
@@
restart() {
stop() {
ifdown -a
}
stop() {
ifdown -a
}
+
+restart() {
+ start
+}
This page took
0.021939 seconds
and
4
git commands to generate.