summaryrefslogtreecommitdiff
path: root/package/base-files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-03-15 14:02:49 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-03-15 14:02:49 +0000
commit3ab30b486f89cb6f538adabb0ca49c0a9ff91b8c (patch)
tree12229c010c0a0b42a0c3dfe6b78dd940ebba728c /package/base-files
parent0095ab73f31ba7a21c9538b89b910ff2d6e1a98b (diff)
downloadmtk-20170518-3ab30b486f89cb6f538adabb0ca49c0a9ff91b8c.zip
mtk-20170518-3ab30b486f89cb6f538adabb0ca49c0a9ff91b8c.tar.gz
mtk-20170518-3ab30b486f89cb6f538adabb0ca49c0a9ff91b8c.tar.bz2
base-files: reload switch settings on /etc/init.d/network start as well
SVN-Revision: 20232
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/files/etc/init.d/network9
1 files changed, 4 insertions, 5 deletions
diff --git a/package/base-files/files/etc/init.d/network b/package/base-files/files/etc/init.d/network
index 74478c7..3587c24 100755
--- a/package/base-files/files/etc/init.d/network
+++ b/package/base-files/files/etc/init.d/network
@@ -15,11 +15,6 @@ boot() {
}
start() {
- ifup -a
- /sbin/wifi up
-}
-
-restart() {
setup_switch() { return 0; }
include /lib/network
@@ -31,3 +26,7 @@ restart() {
stop() {
ifdown -a
}
+
+restart() {
+ start
+}