[arm-allstar] A Script to Change Courtesy tones
    Doug Crompton 
    doug at crompton.com
       
    Fri Mar 25 14:00:39 EDT 2016
    
    
  
Laroy,
 Yes, you are right. I had it hard coded for testing. Users should change the line to
if [ -z "$1" ] || [ "$1" -lt "1" ] || [ "$1" -gt "$MAX_FILE" ]
and set MAX_FILE to the number of different courtesy files they create.
73 Doug
WA3DSP
http://www.crompton.com/hamradio
To: arm-allstar at hamvoip.org
Date: Fri, 25 Mar 2016 11:19:15 -0500
Subject: Re: [arm-allstar] A Script to Change Courtesy tones
From: arm-allstar at hamvoip.org
CC: lmccann at dtisp.com
  
    
  
  
    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, 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
    
    
  
	
      
		Virus-free. www.avast.com
		
	
_______________________________________________
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 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hamvoip.org/pipermail/arm-allstar/attachments/20160325/9ba1adaa/attachment-0006.html>
    
    
More information about the ARM-allstar
mailing list