summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2010-11-16 11:41:40 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2010-11-16 11:41:40 +0000
commit808014dc1f5fdff68ab3f65dc6a201c83e6f6032 (patch)
tree945a85be483ab16daa0db3babb07a1abbddf431b
parent863ae53bc6ef43b49539b91c4f98fd42ea9838e7 (diff)
xpp_fxloader: Don't try to load FPGA firmware twicesvn_2.3
When called from udev to load the FPGA firmware, make sure that this is not the event generated for the first end-point of the existing two, as we need to talk with the second one. This is probably better done in the udev rules, but will be slightly more complicated to apply only to the FPGA loading and not to USB firmware loading. Merged revisions 9482 via svnmerge from http://svn.digium.com/svn/dahdi/tools/trunk git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/branches/2.3@9484 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r--xpp/xpp_fxloader3
1 files changed, 3 insertions, 0 deletions
diff --git a/xpp/xpp_fxloader b/xpp/xpp_fxloader
index 284c5ab..73a6c6e 100644
--- a/xpp/xpp_fxloader
+++ b/xpp/xpp_fxloader
@@ -349,6 +349,9 @@ udev_delayed_load() {
run_fxload -D "$DEVICE" -I "$FIRM_USB"
;;
e4e4/11[3456]1/*)
+ # There are potentially two separate udev events, for
+ # each of the two endpoints. Ignore the first interface:
+ case "$DEVPATH" in *.0) exit 0;; esac
if [ "$prod_id" = 1131 ]; then
FIRM_FPGA="FPGA_FXS.hex" # Legacy
else