summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2008-09-11 20:52:21 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2008-09-11 20:52:21 +0000
commiteaec7be7b980918d72a37851d40ab71e6b56870d (patch)
tree365a47a30c43356cc19d43ad74a12bf32343724b
parent284801268cbe499449c7fdf8170b04b93505bf22 (diff)
Move udev rules xpp.rules from dahdi-tools to dahdi-linux .
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4894 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r--Makefile1
-rw-r--r--drivers/dahdi/xpp/xpp.rules14
2 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 6c255f1..182e925 100644
--- a/Makefile
+++ b/Makefile
@@ -170,6 +170,7 @@ ifndef DYNFS
else # DYNFS
install -d $(DESTDIR)/etc/udev/rules.d
build_tools/genudevrules > $(DESTDIR)/etc/udev/rules.d/dahdi.rules
+ install -m 644 drivers/dahdi/xpp/xpp.rules $(DESTDIR)/etc/udev/rules.d/
endif
uninstall-devices:
diff --git a/drivers/dahdi/xpp/xpp.rules b/drivers/dahdi/xpp/xpp.rules
new file mode 100644
index 0000000..907e08a
--- /dev/null
+++ b/drivers/dahdi/xpp/xpp.rules
@@ -0,0 +1,14 @@
+BUS!="usb", ACTION!="add", GOTO="xpp_usb_add_end"
+KERNEL=="*_ep*", GOTO="xpp_usb_add_end"
+KERNEL=="[0-9]*", GOTO="xpp_usb_add_end"
+
+# Load firmware into the Xorcom Astribank device:
+SYSFS{idVendor}=="e4e4", SYSFS{idProduct}=="11[345][01]", \
+ RUN+="/usr/share/dahdi/xpp_fxloader udev $sysfs{idVendor}/$sysfs{idProduct}/$sysfs{bcdDevice}"
+
+LABEL="xpp_usb_add_end"
+
+# Hotplug hook for Astribank up/down
+# By default XPP_INIT_DIR="/usr/share/dahdi"
+KERNEL=="xbus*" RUN+="%E{XPP_INIT_DIR}/astribank_hook udev $kernel $sysfs{status} $sysfs{connector}"
+