From 44e2de03a4a96a01a732b33bf14c059da1924304 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Mon, 2 Jun 2014 12:42:44 +0000 Subject: [PATCH] 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 SVN-Revision: 40906 --- package/base-files/Makefile | 2 +- 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 207af352666..eea9ecb8e08 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 829ec76bacf..8701312e4c8 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() { -- 2.30.2