#!/bin/bash # Allstar enable script by Kyle Yoksh, K0KN # January 2011 disabletext="/etc/asterisk/~statusdisable" disable="/etc/asterisk/~disable" astcmd="/usr/sbin/asterisk" nodeno="1234" # change to your node number if [ -f $disable ] then rm -f $disable fi # Enable text alerts if [ -f $disabletext ] then rm -f $disabletext fi # Enable Allstar $astcmd -rx "rpt cmd $nodeno cop 2 0" # Note: to supress the RPTENA message from playing, comment the above line, # assign a DTMF in rpt.conf for cop,2 and follow it with a DTMF to flush # telemetry (cop,24). # Example below: replace the *123 below with your DTMF command for cop,2 # and replace *456 with your cop,24 command and uncomment the below line # $astcmd -rx "rpt fun $nodeno *123*456" # ID sleep 2 $astcmd -rx "rpt fun $nodeno *80" exit 0 fi