From: Karel Kočí Date: Sat, 29 Jun 2019 09:10:19 +0000 (+0200) Subject: base-files: supress service restart of umount X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=537b801c5490a85a3ef36456b12f064fc6c665a2;p=openwrt%2Fstaging%2Fdangole.git 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čí --- 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