#!/bin/bash
RHIZO_SCRIPT="/home/rhizomatica/bin"
. $RHIZO_SCRIPT/vars.sh
LOGFILE="/var/log/monitor_amp.log"

$RHIZO_SCRIPT/check_amp_status.sh | grep -q ON
if [ $? == 0 ]; then
        logc "Amplifier is ON! Turn off amp"
        $RHIZO_SCRIPT/turn_off_amplifier.sh >/dev/null 2>&1
        logc 'Procedure completed'
fi

#!/bin/bash
RHIZO_SCRIPT="/home/rhizomatica/bin"
. $RHIZO_SCRIPT/vars.sh
LOGFILE="/var/log/monitor_amp.log"

$RHIZO_SCRIPT/check_amp_status.sh | grep -q OFF
if [ $? == 0 ]; then
        logc "Amplifier is OFF! Turn on amp"
        $RHIZO_SCRIPT/turn_on_amplifier.sh >/dev/null 2>&1
        logc 'Procedure completed'
fi

Revert to turning amps ON
Revert to turning amps ON

partially reverts 9e5c09cb80449ef10637dbd0e18ac71f98086040
but keeping the turn_off_amplifier.sh script.
