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 K* scripts to be run at shutdown
[openwrt-10.03/.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 45d5311a7ad64f4eab28f7b607bc80e308216aeb..eab00118ad46242ee6c3e8289c12b12ab6252fa9 100755
(executable)
--- a/
package/base-files/files/etc/init.d/network
+++ b/
package/base-files/files/etc/init.d/network
@@
-2,7
+2,9
@@
# Copyright (C) 2006 OpenWrt.org
START=40
# Copyright (C) 2006 OpenWrt.org
START=40
-start() {
+STOP=40
+
+boot() {
setup_switch() { return 0; }
include /lib/network
setup_switch() { return 0; }
include /lib/network
@@
-12,3
+14,16
@@
start() {
/sbin/wifi up
}
/sbin/wifi up
}
+start() {
+ ifup -a
+ /sbin/wifi up
+}
+
+restart() {
+ ifup -a
+ /sbin/wifi up
+}
+
+stop() {
+ ifdown -a
+}