[dahdi-commits] tzafrir: tools/trunk r6375 - /tools/trunk/xpp/xpp_fxloader
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Thu Apr 16 12:33:02 CDT 2009
Author: tzafrir
Date: Thu Apr 16 12:32:58 2009
New Revision: 6375
URL: http://svn.digium.com/svn-view/dahdi?view=rev&rev=6375
Log:
xpp_fxloader: exit properly when run with incorrect argument
Modified:
tools/trunk/xpp/xpp_fxloader
Modified: tools/trunk/xpp/xpp_fxloader
URL: http://svn.digium.com/svn-view/dahdi/tools/trunk/xpp/xpp_fxloader?view=diff&rev=6375&r1=6374&r2=6375
==============================================================================
--- tools/trunk/xpp/xpp_fxloader (original)
+++ tools/trunk/xpp/xpp_fxloader Thu Apr 16 12:32:58 2009
@@ -247,6 +247,14 @@
if [ "$1" = 'wait' ]; then
wait_renumeration $totaldevs e4e4 '11[3456]0'
fi
+}
+
+usage() {
+ 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."
}
#########################
@@ -291,14 +299,16 @@
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')"
+ usage
exit 0
+ ;;
+*)
+ if [ "$ACTION" = '' ]; then # not called from hotplug
+ echo "$0: Error: unknown command \"$1\""
+ echo ''
+ usage
+ exit 1
+ fi
;;
esac
More information about the dahdi-commits
mailing list