From: Jonas Gorski Date: Mon, 21 Nov 2016 14:47:48 +0000 (+0100) Subject: base-files: ignore failure of stopping services on removal X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=48cfc826;p=openwrt%2Fstaging%2Fdangole.git base-files: ignore failure of stopping services on removal Packages that do a killall with the same name as the init script will fail the prerm step when the service isn't running. Do make them removable without having to restart the service, ignore the return code. Signed-off-by: Jonas Gorski Acked-by: Jo-Philipp Wich --- diff --git a/package/base-files/files/lib/functions.sh b/package/base-files/files/lib/functions.sh index a5838f6035..b3bf2213f4 100755 --- a/package/base-files/files/lib/functions.sh +++ b/package/base-files/files/lib/functions.sh @@ -178,7 +178,7 @@ default_prerm() { if [ "$PKG_UPGRADE" != "1" ]; then "$i" disable fi - "$i" stop + "$i" stop || /bin/true fi done }