mirror of https://github.com/hak5/openwrt.git
base-files: ignore failure of stopping services on removal
Packages that do a killall <cmd> 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 <jonas.gorski@gmail.com> Acked-by: Jo-Philipp Wich <jo@mein.io>lede-17.01
parent
88a14bfd1d
commit
48cfc826eb
|
@ -178,7 +178,7 @@ default_prerm() {
|
|||
if [ "$PKG_UPGRADE" != "1" ]; then
|
||||
"$i" disable
|
||||
fi
|
||||
"$i" stop
|
||||
"$i" stop || /bin/true
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue