[no ci] Sysupgrade: allow firmware update over majestic (#1192)

pull/1196/head
viktorxda 2023-12-14 01:51:21 +01:00 committed by GitHub
parent 8c0d55b870
commit 4ff46e4d4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -3,12 +3,10 @@
# OpenIPC.org | v.20231202
#
scr_version=1.0.23
scr_version=1.0.24
args=" $@"
set -e
LOCK_FILE=/tmp/sysupgrade.lock
IPCINFO=/tmp/ipcinfo
@ -105,7 +103,8 @@ free_resources() {
# "load_$vendor" -r >/dev/null 2>&1 || true
#
echo_c 37 "\nStop services, sync files, free up memory"
for proc in majestic crond klogd ntpd rngd syslogd; do
killall -SIGUSR2 majestic
for proc in crond klogd ntpd rngd syslogd; do
echo -n "Killing $proc "
while [ -n "$(pidof $proc)" ]; do
killall $proc >/dev/null 2>&1 || true