repeater_control.sh

Summary: This script allows the control operator to disable/enable the repeat functionality of their AllStarLink controlled repeater.

#!/bin/bash
# SCRIPT NAME: repeater_control
# CREATED ON:  07/31/2020
# SCRIPT PURPOSE: To disable/enable the repeat function of an hamvoip repeater
# SCRIPT NOTES: Pass the variable on or off to the script.
# SCRIPT EXAMPLE: ./repeater_control.sh on or ./repeater_control.sh off
if [ "$1" == "on" ]
 then
    echo -e "\nRepeater ON Node $NODE1\n"
    asterisk -rx "rpt cmd $NODE1 cop 2"
fi
if [ "$1" == "off" ]
  then
    echo -e "\nRepeater OFF Node $NODE1\n"
    asterisk -rx "rpt cmd $NODE1 cop 3"
fi