mirror of https://github.com/OpenIPC/firmware.git
[no ci] Sysupgrade: add date check for majestic version
parent
4ff46e4d4f
commit
9fe492936e
|
@ -3,7 +3,7 @@
|
||||||
# OpenIPC.org | v.20231202
|
# OpenIPC.org | v.20231202
|
||||||
#
|
#
|
||||||
|
|
||||||
scr_version=1.0.24
|
scr_version=1.0.25
|
||||||
|
|
||||||
args=" $@"
|
args=" $@"
|
||||||
|
|
||||||
|
@ -103,7 +103,12 @@ free_resources() {
|
||||||
# "load_$vendor" -r >/dev/null 2>&1 || true
|
# "load_$vendor" -r >/dev/null 2>&1 || true
|
||||||
#
|
#
|
||||||
echo_c 37 "\nStop services, sync files, free up memory"
|
echo_c 37 "\nStop services, sync files, free up memory"
|
||||||
killall -SIGUSR2 majestic
|
|
||||||
|
echo -n "Killing majestic ... "
|
||||||
|
time=$(grep TIME_STAMP /etc/os-release | cut -d= -f2)
|
||||||
|
[ "$time" -gt "1702544400" ] && killall -SIGUSR2 majestic || killall majestic
|
||||||
|
echo "OK"
|
||||||
|
|
||||||
for proc in crond klogd ntpd rngd syslogd; do
|
for proc in crond klogd ntpd rngd syslogd; do
|
||||||
echo -n "Killing $proc "
|
echo -n "Killing $proc "
|
||||||
while [ -n "$(pidof $proc)" ]; do
|
while [ -n "$(pidof $proc)" ]; do
|
||||||
|
|
Loading…
Reference in New Issue