aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc/rc.common
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-06-02 12:42:44 +0000
committerJohn Crispin <john@openwrt.org>2014-06-02 12:42:44 +0000
commit44e2de03a4a96a01a732b33bf14c059da1924304 (patch)
treed1377638a127b826300f81307b835c14d0ead9e0 /package/base-files/files/etc/rc.common
parent8f100f4f2e1ee0689f5ba70341283c0a87932370 (diff)
downloadupstream-44e2de03a4a96a01a732b33bf14c059da1924304.tar.gz
upstream-44e2de03a4a96a01a732b33bf14c059da1924304.tar.bz2
upstream-44e2de03a4a96a01a732b33bf14c059da1924304.zip
base-files: calling stop_service before procd_kill.
Before this patch, doing `/e/c/network restart' will emit the folloing error by `ubus network.wireless down "{}"' because netifd already quit by that time. Command failed: not found Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> SVN-Revision: 40906
Diffstat (limited to 'package/base-files/files/etc/rc.common')
-rwxr-xr-xpackage/base-files/files/etc/rc.common2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/etc/rc.common b/package/base-files/files/etc/rc.common
index 829ec76bac..8701312e4c 100755
--- a/package/base-files/files/etc/rc.common
+++ b/package/base-files/files/etc/rc.common
@@ -112,8 +112,8 @@ ${INIT_TRACE:+set -x}
}
stop() {
- procd_kill "$(basename ${basescript:-$initscript})" "$1"
stop_service "$@"
+ procd_kill "$(basename ${basescript:-$initscript})" "$1"
}
reload() {