[no ci] Overlay: use separate kill command for sigmastar (#1302)

pull/1303/head
viktorxda 2024-02-06 14:24:55 +01:00 committed by GitHub
parent 7532237ee7
commit 03a5c7e987
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 2 deletions

View File

@ -3,7 +3,7 @@
# OpenIPC.org | 2024
#
scr_version=1.0.35
scr_version=1.0.36
args=" $@"
@ -102,7 +102,13 @@ download_firmware() {
free_resources() {
echo_c 37 "\nStop services, sync files, free up memory"
for proc in majestic crond klogd ntpd rngd syslogd; do
if [ "$vendor" = "sigmastar" ]; then
killall -3 majestic
else
majestic=majestic
fi
for proc in $majestic crond klogd ntpd rngd syslogd; do
echo -n "Killing $proc "
while [ -n "$(pidof $proc)" ]; do
killall -q $proc