Skip to content
Permalink
Browse files

Add piwatcher switch to nems-info

  • Loading branch information...
NEMS Linux
NEMS Linux committed Feb 22, 2019
1 parent 6f16a35 commit fa779dd289f03f0567fbc28446f866997cf3f629
Showing with 12 additions and 0 deletions.
  1. +12 −0 info.sh
12 info.sh
@@ -372,6 +372,18 @@ elif [[ $COMMAND == "update" ]]; then
echo 0
fi

elif [[ $COMMAND == "piwatcher" ]]; then
if [[ -e /var/log/nems/piwatcher ]]; then
piwatcher=$(cat /var/log/nems/piwatcher)
if [[ $piwatcher == "1" ]]; then
echo 1
else
echo 0
fi
else
echo 0
fi


# Output usage info as no valid command line argument was provided
else

0 comments on commit fa779dd

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