1 # TMoteSky remote udev rules
2 # Copyright (c) 2007 Rostislav Spinar <rostislav.spinar@cit.ie>
3 #################################################################
4 ## Create /dev/remote/{platform}{serial}/* files
6 # See remote-device-add for description of all parameters
8 # Rules tested on the Soekris board NET4521 running
9 # stripped down version of the Gentoo and having both
10 # TMoteSky and MicaZ connected to the USB hub. Since
11 # NET4521 board comes without USB we had to use
12 # PCMCIA-USB card as a interface for USB hubs.
14 SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", RUN+="/bin/bash -c '/lib/udev/remote-device-add TMoteSky 04036001%s{serial} ${DEVPATH%%%%/tty*} /sbin/program-mote.sh /sbin/control-mote.sh'"
16 ## Remove /dev/remote/{platform}{serial}/* files
17 # The idVendor and idProduct attributes are not defined on some
18 # udev systems. Instead, catch all tty events and use a general
19 # device cleanup script.
21 SUBSYSTEM=="tty", ACTION=="remove", RUN+="/lib/udev/remote-device-remove"