summaryrefslogtreecommitdiff
path: root/xpp/utils/xpp.rules
blob: 794a9f04c1d65963b4cd28b61873b19bf94eaf8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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/zaptel/xpp_fxloader udev $sysfs{idVendor}/$sysfs{idProduct}/$sysfs{bcdDevice}"

LABEL="xpp_usb_add_end"

# Hotplug hook for Astribank up/down
KERNEL=="xbus*" RUN+="/usr/share/zaptel/astribank_hook udev $kernel $sysfs{status} $sysfs{connector}"