diff options
author | John Crispin <john@openwrt.org> | 2014-06-02 12:42:44 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2014-06-02 12:42:44 +0000 |
commit | 44e2de03a4a96a01a732b33bf14c059da1924304 (patch) | |
tree | d1377638a127b826300f81307b835c14d0ead9e0 | |
parent | 8f100f4f2e1ee0689f5ba70341283c0a87932370 (diff) | |
download | mtk-20170518-44e2de03a4a96a01a732b33bf14c059da1924304.zip mtk-20170518-44e2de03a4a96a01a732b33bf14c059da1924304.tar.gz mtk-20170518-44e2de03a4a96a01a732b33bf14c059da1924304.tar.bz2 |
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
-rw-r--r-- | package/base-files/Makefile | 2 | ||||
-rwxr-xr-x | package/base-files/files/etc/rc.common | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 207af35..eea9ecb 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/version.mk include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=base-files -PKG_RELEASE:=152 +PKG_RELEASE:=153 PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/ PKG_BUILD_DEPENDS:=opkg/host diff --git a/package/base-files/files/etc/rc.common b/package/base-files/files/etc/rc.common index 829ec76..8701312 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() { |