aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/fstools/files
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2019-06-05 13:18:41 +0200
committerJo-Philipp Wich <jo@mein.io>2019-06-21 14:13:58 +0200
commit3ead9e7b743b1fbd3b07f5a72a16999abbec9347 (patch)
treef4f37bee8bc0392f8f04c7a364b1f47cc13779ea /package/system/fstools/files
parent27a4a71c240875e3fff868f26f723178bf94eb86 (diff)
downloadupstream-3ead9e7b743b1fbd3b07f5a72a16999abbec9347.tar.gz
upstream-3ead9e7b743b1fbd3b07f5a72a16999abbec9347.tar.bz2
upstream-3ead9e7b743b1fbd3b07f5a72a16999abbec9347.zip
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>
Diffstat (limited to 'package/system/fstools/files')
-rw-r--r--package/system/fstools/files/fstab.init4
1 files changed, 4 insertions, 0 deletions
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
}