From 8383c19b908c17dce8b5572c171e7937f4310748 Mon Sep 17 00:00:00 2001 From: Petr Štetiar Date: Sat, 21 Sep 2019 10:53:48 +0200 Subject: treewide: fix service status command in procd compatible services MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix breaking change introduced in the main tree with a commit 7519a36774ca ("base-files,procd: add generic service status") where the old service `status` callback function doesn't work anymore and needs to be renamed to `status_service`. This name was chosen for consistency with start and stop function callbacks, which are using `start_service` and `stop_service` naming schemes. While at it, fix whitespace issues in the status_service as well. Ref: http://lists.infradead.org/pipermail/openwrt-devel/2019-September/019035.html Reported-by: Dirk Brenken Signed-off-by: Petr Štetiar --- net/wifidog/Makefile | 2 +- net/wifidog/files/wifidog.init | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'net/wifidog') diff --git a/net/wifidog/Makefile b/net/wifidog/Makefile index 03e78a38f..47367e474 100644 --- a/net/wifidog/Makefile +++ b/net/wifidog/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=wifidog PKG_VERSION:=1.3.0 -PKG_RELEASE:=4 +PKG_RELEASE:=5 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/wifidog/wifidog-gateway diff --git a/net/wifidog/files/wifidog.init b/net/wifidog/files/wifidog.init index 6ebf64fbc..3078a001a 100644 --- a/net/wifidog/files/wifidog.init +++ b/net/wifidog/files/wifidog.init @@ -17,6 +17,6 @@ start_service() { procd_close_instance } -status() { +status_service() { /usr/bin/wdctl status } -- cgit v1.2.3