dont run 2 copies sysupgrade script

pull/274/head
cronyx 2022-07-22 18:05:11 +03:00
parent 72e5f03bae
commit fb8c6ae140
1 changed files with 6 additions and 1 deletions

View File

@ -1,8 +1,13 @@
#!/bin/sh
#
# OpenIPC.org | v.20220222
# OpenIPC.org | v.20220722
#
if [ $(pidof sysupgrade) ]; then
echo "Sysupgrade script already running!"
exit 1
fi
set -e
echo_c() {