aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2019-06-29 11:10:19 +0200
committerJo-Philipp Wich <jo@mein.io>2019-09-04 13:23:16 +0200
commitec49bb64e784d562bc7bb98073e9825a2452d790 (patch)
tree220312b079e29ba0b4d6bc65691692a283f4e4b3 /package/base-files/files
parent3cb0eed8a1e403de78514dd243f522fcc21d1350 (diff)
downloadupstream-ec49bb64e784d562bc7bb98073e9825a2452d790.tar.gz
upstream-ec49bb64e784d562bc7bb98073e9825a2452d790.tar.bz2
upstream-ec49bb64e784d562bc7bb98073e9825a2452d790.zip
base-files: supress service restart of umount
Restart is in default implemented so it calls stop and start. This is pretty unsafe to call on umount service. This service should not do anything on restart the same way as on start. Only use of this service is on stop. Signed-off-by: Karel Kočí <cynerd@email.cz> (cherry picked from commit 537b801c5490a85a3ef36456b12f064fc6c665a2)
Diffstat (limited to 'package/base-files/files')
-rwxr-xr-xpackage/base-files/files/etc/init.d/umount5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/base-files/files/etc/init.d/umount b/package/base-files/files/etc/init.d/umount
index 57a4a6d90c..b764ae1582 100755
--- a/package/base-files/files/etc/init.d/umount
+++ b/package/base-files/files/etc/init.d/umount
@@ -2,6 +2,11 @@
# Copyright (C) 2006 OpenWrt.org
STOP=90
+
+restart() {
+ :
+}
+
stop() {
sync
/bin/umount -a -d -r