Skip to content
Permalink
Browse files

Create PID before delay timer

  • Loading branch information...
NEMS Linux
NEMS Linux committed Mar 16, 2019
1 parent 1609d0f commit bd9f7ff3ec57d96772b92467528a777231051dda
Showing with 8 additions and 7 deletions.
  1. +8 −7 quickfix.sh
@@ -1,13 +1,6 @@
#!/bin/bash
allowupdate=`/usr/local/bin/nems-info allowupdate`

# Wait for 90 seconds if system just booted
suptime=$(awk '{print $1}' /proc/uptime)
while [[ $suptime < 120 ]]; do
echo "System is still loading. Please wait..."
sleep 90
done

# Just in case nems-quickfix is running
quickfix=$(/usr/local/bin/nems-info quickfix)
if [[ $quickfix == 1 ]]; then
@@ -20,6 +13,14 @@ allowupdate=`/usr/local/bin/nems-info allowupdate`
fi
echo $$ > /var/run/nems-quickfix.pid

# Wait for 90 seconds if system just booted
suptime=$(awk '{print $1}' /proc/uptime)
while [[ $suptime < 120 ]]; do
echo "System is still loading. Please wait..."
sleep 90
done


# 1 = Not allowed
# 2 = Allowed monthly
# 3 = Allowed semi-weekly

0 comments on commit bd9f7ff

Please sign in to comment.
You can’t perform that action at this time.