Add param for sysmoBTS amps on/off

This is for the sysmoBTS 2050
This commit is contained in:
Keith Whyte 2020-04-11 05:37:49 +02:00
parent bca9ccae5d
commit 55df1a8d4f
3 changed files with 17 additions and 0 deletions

View file

@ -1,11 +0,0 @@
#!/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