wd5m / echoirlp

Adds an EchoLink repeater or link radio node to IRLP hardware
https://groups.io/g/echoirlp
12 stars 0 forks source link

Enhance changes to IRLP custom files in install script #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Modify echo-install to add logic to check for existance of EchoIRLP scripts
within custom_decode, custom_on, custom_off, and environment file changes.
 This will allow IRLP to function if EchoIRLP is removed, or if IRLP is
restored from a backup without EchoIRLP.

custom_decode Example:

if [ -x "$ECHO_SCRIPT/echo_end" ] ; then
# Use EchoIRLP to disconnect
  if [ "$1" = "73" ] ; then "$ECHO_SCRIPT"/echo_end ; exit 1 ; fi
fi

if [ -x "$ECHO_SCRIPT/echo_call" ] ; then
# Echolink Prefix detector
# If you change the EchoIRLP prefix, you must also change "num" below to
the number of digits in the prefix.
eval `echo $1 | awk -v num= '{
     print "PRE="substr($1,1,num);
     print "NODE="substr($1,(num)+1,length($1))}'`
#Call echolink conferences using star node method
if [ "$PRE" = "S" ] ; then "$ECHO_SCRIPT"/echo_call $NODE ; exit 1 ; fi
fi

Original issue reported on code.google.com by david.mc...@gmail.com on 11 Sep 2006 at 5:45

GoogleCodeExporter commented 9 years ago

Original comment by david.mc...@gmail.com on 11 Sep 2006 at 6:23