Permalink
Browse files

Make cleanup wait for reboot qf

  • Loading branch information...
NEMS Linux
NEMS Linux committed Aug 26, 2018
1 parent eabed4b commit 4902b5e70f766293e4d2c1b920c4d18c9f4e2240
Showing with 17 additions and 1 deletion.
  1. +17 −1 nems-cleanup.sh
@@ -8,9 +8,25 @@ if [[ $EUID -ne 0 ]]; then
echo "ERROR: This script must be run as root" 2>&1
exit 1
else
if [[ $1 != "halt" ]]; then echo "Pass the halt option to halt after execution or the reboot option to reboot."; echo ""; fi;
if [[ -f /tmp/qf.sh ]]; then
qfrunning=`ps aux | grep -i "myscript.sh" | grep -v "grep" | wc -l`
if [ $qfrunning -ge 1 ]
then
printf "Please wait... your NEMS server is being updated."
while [ -f /tmp/qf.sh ]
do
printf "."
sleep 2
done
echo " Ready."
else
rm /tmp/qf.sh
fi
fi
platform=$(/usr/local/share/nems/nems-scripts/info.sh platform)
# Check if nemsadmin exists, and create it if not

0 comments on commit 4902b5e

Please sign in to comment.