Permalink
Browse files

Fixed: Warning Light was incorrectly counting object

  • Loading branch information...
NEMS Linux
NEMS Linux committed Nov 30, 2018
1 parent 6d642af commit c36c9c81286c8f6ee7f39566347429e92b4bb450
Showing with 4 additions and 0 deletions.
  1. +4 −0 fixes.sh
@@ -208,6 +208,10 @@ check process 9590 with pidfile /run/9590.pid
/bin/sed -i~ '/sh: 1: \/usr\/local\/bin\/gpio: not found/d' /var/log/nems/nems-tools/warninglight
restartwarninglight=1
fi
if grep -q "Parameter must be an array or an object that implements Countable" /var/log/nems/nems-tools/warninglight; then
/bin/sed -i~ '/Parameter must be an array or an object that implements Countable/d' /var/log/nems/nems-tools/warninglight
restartwarninglight=1
fi
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 &

0 comments on commit c36c9c8

Please sign in to comment.