Revert to turning amps ON
partially reverts 9e5c09cb80
but keeping the turn_off_amplifier.sh script.
This commit is contained in:
parent
ff8f642ee0
commit
54be005968
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue