From ec49bb64e784d562bc7bb98073e9825a2452d790 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 29 Jun 2019 11:10:19 +0200 Subject: [PATCH] base-files: supress service restart of umount MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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čí (cherry picked from commit 537b801c5490a85a3ef36456b12f064fc6c665a2) --- package/base-files/files/etc/init.d/umount | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.25.1