fstools: block-mount: fix restart of fstab service

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čí <karel.koci@nic.cz>
(cherry picked from commit 3ead9e7b74)
This commit is contained in:
Karel Kočí 2019-06-05 13:18:41 +02:00 committed by CN_SZTL
parent 75bbbc8bc2
commit bb379fc264
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -16,6 +16,10 @@ restart() {
/sbin/block mount
}
restart() {
start
}
stop() {
/sbin/block umount
}