From 3ead9e7b743b1fbd3b07f5a72a16999abbec9347 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 5 Jun 2019 13:18:41 +0200 Subject: [PATCH] fstools: block-mount: fix restart of fstab service MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Restarting service causes file-systems to be unmounted without being mounted back. When this service was obsoleted it should have been implemented in a way that all actions are ignored. Up to this commit default handler was called when restart was requested. This default handler just simply calls stop and start. That means that stop called unmount but start just printed that this service is obsoleted. This instead implements restart that just prints same message like start does. It just calls start in reality. This makes restart unavailable for call. Signed-off-by: Karel Kočí --- package/system/fstools/Makefile | 2 +- package/system/fstools/files/fstab.init | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package/system/fstools/Makefile b/package/system/fstools/Makefile index 3c318df511..3aa250f7d4 100644 --- a/package/system/fstools/Makefile +++ b/package/system/fstools/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=fstools -PKG_RELEASE:=4 +PKG_RELEASE:=5 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL=$(PROJECT_GIT)/project/fstools.git diff --git a/package/system/fstools/files/fstab.init b/package/system/fstools/files/fstab.init index 5faa8ecbb9..afed78ebfc 100644 --- a/package/system/fstools/files/fstab.init +++ b/package/system/fstools/files/fstab.init @@ -11,6 +11,10 @@ start() { echo "this file has been obsoleted. please call \"/sbin/block mount\" directly" } +restart() { + start +} + stop() { /sbin/block umount } -- 2.30.2