[zaptel-commits] tzafrir: trunk r1281 - /trunk/xpp/utils/xpp_fxloader

zaptel-commits at lists.digium.com zaptel-commits at lists.digium.com
Wed Aug 9 19:42:04 MST 2006


Author: tzafrir
Date: Wed Aug  9 21:42:03 2006
New Revision: 1281

URL: http://svn.digium.com/view/zaptel?rev=1281&view=rev
Log:
* xpp_fxloader: Allow loading just USB firmware with command 'usb'
* xpp_fxloader: also add 'load' as an alias of 'xppdetect'
* xpp_fxloader: and add a 'help' message.

Modified:
    trunk/xpp/utils/xpp_fxloader

Modified: trunk/xpp/utils/xpp_fxloader
URL: http://svn.digium.com/view/zaptel/trunk/xpp/utils/xpp_fxloader?rev=1281&r1=1280&r2=1281&view=diff
==============================================================================
--- trunk/xpp/utils/xpp_fxloader (original)
+++ trunk/xpp/utils/xpp_fxloader Wed Aug  9 21:42:03 2006
@@ -125,16 +125,32 @@
 ##
 
 # to run manually, pass the parameter 'xppdetect'
-if [ "$1" = 'xppdetect' ]; then
-	echo "--------- FIRMWARE LOADING"
+case "$1" in
+xppdetect|load|usb)
+	echo "--------- FIRMWARE LOADING: ($1)"
+	
 	load_fw 04b4 8613 USB_8613.hex 
 	load_fw e4e4 1130 USB_1130.hex
-	load_fpga e4e4 1131 FPGA_FXS.hex
+	if [ "$1" != 'usb' ]
+	then
+		load_fpga e4e4 1131 FPGA_FXS.hex
+	fi
 
 	sleep 3		# Let it stabilize
 	echo "--------- FIRMWARE IS LOADED"
-	exit $?
-fi
+	exit 0
+	;;
+help)
+	echo "$0: Astribank firmware loading script."
+	echo "Usage: "
+	echo "$0 load  : manual firmware loading."
+	echo "$0 usb   : manual firmware loading: USB firmware only."
+	echo "$0 help  : this text."
+	echo ""
+	echo "('xppdetect' is an alias of 'load')"
+	exit 0
+	;;
+esac
 
 #########################
 ##



More information about the zaptel-commits mailing list