From ec49bb64e784d562bc7bb98073e9825a2452d790 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 29 Jun 2019 11:10:19 +0200 Subject: base-files: supress service restart of umount MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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(+) (limited to 'package/base-files') 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 -- cgit v1.2.3