mirror of https://github.com/OpenIPC/firmware.git
[no ci] Overlay: address previous commit (#1365)
parent
362f5ae5b2
commit
16b1267fd9
|
@ -102,14 +102,15 @@ download_firmware() {
|
|||
free_resources() {
|
||||
echo_c 37 "\nStop services, sync files, free up memory"
|
||||
if [ "$vendor" = "sigmastar" ] || [ "$vendor" = "ingenic" ]; then
|
||||
/etc/init.d/S95majestic pause
|
||||
killall -q -3 majestic
|
||||
else
|
||||
/etc/init.d/S95majestic stop
|
||||
killall -q majestic
|
||||
fi
|
||||
/etc/init.d/S60crond stop
|
||||
/etc/init.d/S49ntpd stop
|
||||
/etc/init.d/S02klogd stop
|
||||
/etc/init.d/S01syslogd stop
|
||||
sleep 1
|
||||
|
||||
sync
|
||||
echo 3 > /proc/sys/vm/drop_caches
|
||||
|
|
|
@ -41,20 +41,8 @@ stop() {
|
|||
fi
|
||||
}
|
||||
|
||||
pause() {
|
||||
printf "Pausing $DAEMON: "
|
||||
start-stop-daemon -K -s QUIT -q -p "$PIDFILE"
|
||||
status=$?
|
||||
if [ "$status" -eq 0 ]; then
|
||||
rm -f "$PIDFILE"
|
||||
echo "OK"
|
||||
else
|
||||
echo "FAIL"
|
||||
fi
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start|stop|pause)
|
||||
start|stop)
|
||||
"$1"
|
||||
;;
|
||||
|
||||
|
|
Loading…
Reference in New Issue