[no ci] Overlay: address previous commit (#1365)

pull/1366/head
viktorxda 2024-03-28 12:38:37 +01:00 committed by GitHub
parent 362f5ae5b2
commit 16b1267fd9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 15 deletions

View File

@ -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

View File

@ -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"
;;