Skip to content
Permalink
Browse files

Improvements to NEMS TV Dashboard

  • Loading branch information...
NEMS Linux
NEMS Linux committed Jul 11, 2019
1 parent d2768c0 commit 45d7c5aa19d3a43db70cd16c89d991469393c72c
Showing with 18 additions and 0 deletions.
  1. +18 −0 info.sh
18 info.sh
@@ -70,6 +70,24 @@ elif [[ $COMMAND == "checkport" ]]; then
elif [[ $COMMAND == "nemsver" ]]; then
cat /usr/local/share/nems/nems.conf | grep version | printf '%s' $(cut -n -d '=' -f 2)

elif [[ $COMMAND == "tv_require_notify" ]]; then
tv_require_notify=`cat /usr/local/share/nems/nems.conf | grep tv_require_notify | printf '%s' $(cut -n -d '=' -f 2)`
if [[ $tv_require_notify == 2 ]]; then
echo 2 # Show notifications immediately
else
echo 1 # Show notices only when host/service enters notification period (default)
fi

elif [[ $COMMAND == "tv_24h" ]]; then
tv_24h=`cat /usr/local/share/nems/nems.conf | grep tv_24h | printf '%s' $(cut -n -d '=' -f 2)`
if [[ $tv_24h == 1 ]]; then
echo 1 # Set TV Dashboard to 24 hour clock
elif [[ $tv_24h == 2 ]]; then
echo 2 # Leave TV Dashboard as 12 hour clock but include AM/PM
else
echo 0 # Leave TV Dashboard as standard 12 hour clock
fi

# Output the current available NEMS version (update.sh generates this every day at midnight and at reboot)
elif [[ $COMMAND == "nemsveravail" ]]; then
if [[ -f /root/nems/nems-migrator/data/nems/ver-current.txt ]]; then

0 comments on commit 45d7c5a

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