[aadk-commits] dbailey: uClinux/trunk r556 - /uClinux/trunk/uClinux-dist/vendors/Digium/S800...

SVN commits to the AADK repository aadk-commits at lists.digium.com
Wed Aug 8 16:18:41 CDT 2007


Author: dbailey
Date: Wed Aug  8 16:18:39 2007
New Revision: 556

URL: http://svn.digium.com/view/aadk?view=rev&rev=556
Log:
Made the fxotune_all less instrusive

Modified:
    uClinux/trunk/uClinux-dist/vendors/Digium/S800I/scripts/fxotune_all

Modified: uClinux/trunk/uClinux-dist/vendors/Digium/S800I/scripts/fxotune_all
URL: http://svn.digium.com/view/aadk/uClinux/trunk/uClinux-dist/vendors/Digium/S800I/scripts/fxotune_all?view=diff&rev=556&r1=555&r2=556
==============================================================================
--- uClinux/trunk/uClinux-dist/vendors/Digium/S800I/scripts/fxotune_all (original)
+++ uClinux/trunk/uClinux-dist/vendors/Digium/S800I/scripts/fxotune_all Wed Aug  8 16:18:39 2007
@@ -1,23 +1,32 @@
 #!/bin/sh
 
-# create small shell program that will keep the watchdog application (procwatch) 
-#	thinking that a valid asterisk is running
+# Application that runs the fxotune application for all the possible FXO ports on the appliance
+# Optional command line argument allows final output to be directed to a file
 
-echo "#!/bin/sh" >/asterisk.dummy
-echo "sleep 1000" >>/asterisk.dummy
-chmod 755 /asterisk.dummy
-/asterisk.dummy &
+#Delete the result file before running the actual application
+if [ "$1" != "" ]; then
+	echo "Deleting file: $1"
+	rm $1
+fi
 
-# Kill asterisk to allow fxotune access to all the fxo ports
-asterisk -rx "stop now" 
+# Unload chan_zap so that fxotune can get access to driver 
+asterisk -rx "module unload chan_zap" 
 
 # Allow things to settle
-sleep 5
+sleep 3
 
+echo "starting FXO tuning" > $1
 #run fxotune to tune the ports
 fxotune -i -b 1 -e 8 
 
-echo "FXO tuning is complete!!"
-echo "You must run \"save_config\" in order to save these parameters accross reboots."
-echo "You should run \"reboot\" to restart your appliance."
+# Unload chan_zap so that fxotune can get access to driver 
+asterisk -rx "module load chan_zap" 
 
+if [ "$1" != "" ]; then
+	echo "FXO tuning is complete!!" >$1
+else 
+	echo "FXO tuning is complete!!"
+	echo "You must run \"save_config\" in order to save these parameters across reboots."
+	echo "You should run \"reboot\" to restart your appliance."
+fi
+




More information about the aadk-commits mailing list