[arm-allstar] A Script to Change Courtesy tones

LaRoy McCann lmccann at dtisp.com
Fri Mar 25 11:19:15 EST 2016


Doug,

In your script you have  "MAX_FILE" variable set to 2.
*//**/# Maximum file number (1 - MAX_FILE)/**/
/**/MAX_FILE="2"/*

But in your comparison statement you have the greater than check hard 
coded to 2.
*/if [ -z "$1" ] || [ "$1" -lt "1" ] || [ "$1" -gt 2 ]/*

I think this is what you intended for the comparison to read.
*/if [ -z "$1" ] || [ "$1" -lt "1" ] || [ "$1" -gt "$MAX_FILE" ]

/*73's
LaRoy, K5TW


On 3/25/2016 10:26 AM, Doug Crompton via arm-allstar wrote:
> These attachments were in the original message but I repeat them here...
>
> *73 Doug
> WA3DSP
> http://www.crompton.com/hamradio*
>
>
> > Date: Fri, 25 Mar 2016 01:39:59 -0500
> > To: arm-allstar at hamvoip.org
> > Subject: [arm-allstar] A Script to Change Courtesy tones
> > From: arm-allstar at hamvoip.org
> > CC: kevin.babich at gmail.com
> >
> > Doug,
> >
> > Your email references an attached script, could you please send this 
> to me?
> >
> > Kindest Regards,
> >
> > Kevin Babich | N9IAA
> > Valparaiso, IN 46383
> >
> > Mobile: 219.406.9707
> >
> > Cessna 421
> > Cesssna Conquest I/II
> > Beechcraft King Air 90/200
> >
>
>
> -- 
> This message has been scanned for viruses and
> dangerous content by the *DTISP MailScanner* <http://www.dtisp.com/>, 
> and is
> believed to be clean.
>
>
> _______________________________________________
>
> arm-allstar mailing list
> arm-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2 web page - http://hamvoip.org



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hamvoip.org/pipermail/arm-allstar/attachments/20160325/6f96ad6a/attachment.html>


More information about the arm-allstar mailing list