Skip to content
Permalink
Browse files

NEMS GPIO Extender Server active

  • Loading branch information...
NEMS Linux
NEMS Linux committed Jul 5, 2019
1 parent 231652e commit abc5c088158d3defa4f7fef51436006934615df9
Showing with 11 additions and 0 deletions.
  1. +11 −0 fixes.sh
@@ -236,6 +236,8 @@ check process 9590 with pidfile /run/9590.pid
/bin/sed -i~ '/Parameter must be an array or an object that implements Countable/d' /var/log/nems/nems-tools/warninglight
restartwarninglight=1
fi

# Restart warninglight if needed
if (( $restartwarninglight == 1 )); then
kill `cat /var/run/warninglight.pid` && sleep 1
/root/nems/nems-tools/warninglight >> /var/log/nems/nems-tools/warninglight 2>&1 &
@@ -614,6 +616,15 @@ fi
fi
fi

# Install the NEMS Tools GPIO Extender daemon.
if ! grep -q "NEMS0016" /tmp/cron.tmp; then
printf "\n# NEMS Tools GPIO Extender Server NEMS0016\n@reboot /root/nems/nems-tools/gpio-extender/gpioe-server > /dev/null 2>&1\n" >> /tmp/cron.tmp
cronupdate=1
# Run it
restartwarninglight=1
/root/nems/nems-tools/gpio-extender/gpioe-server > /dev/null 2>&1 &
fi


# Import revised crontab
if [[ "$cronupdate" == "1" ]]

0 comments on commit abc5c08

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