Revert to turning amps ON

partially reverts 9e5c09cb80
but keeping the turn_off_amplifier.sh script.
This commit is contained in:
Monocots 2019-06-16 11:34:48 +00:00
parent ff8f642ee0
commit 54be005968

View file

@ -3,9 +3,9 @@ RHIZO_SCRIPT="/home/rhizomatica/bin"
. $RHIZO_SCRIPT/vars.sh . $RHIZO_SCRIPT/vars.sh
LOGFILE="/var/log/monitor_amp.log" LOGFILE="/var/log/monitor_amp.log"
$RHIZO_SCRIPT/check_amp_status.sh | grep -q ON $RHIZO_SCRIPT/check_amp_status.sh | grep -q OFF
if [ $? == 0 ]; then if [ $? == 0 ]; then
logc "Amplifier is ON! Turn off amp" logc "Amplifier is OFF! Turn on amp"
$RHIZO_SCRIPT/turn_off_amplifier.sh >/dev/null 2>&1 $RHIZO_SCRIPT/turn_on_amplifier.sh >/dev/null 2>&1
logc 'Procedure completed' logc 'Procedure completed'
fi fi