1 # Re-Mote UDEV RUN rules for the DIG528-2 platform
2 # Copyright (c) 2007 Jonas Fonseca <fonseca@diku.dk>
4 ## Create /dev/remote/{serial}/* files
5 # For the path file use the physical device path given (only) for
6 # the usb_device event via the PHYSDEVPATH env variable.
7 DEVPATH=="/class/usb_device/*", ATTRS{idVendor}=="0050", ATTRS{idProduct}=="c237", RUN+="/lib/udev/remote-device-add dig528-2 0050C237%s{serial} %E{PHYSDEVPATH} /sbin/hc08sprg"
9 ## Remove /dev/remote/{serial}/* files
10 # The idVendor and idProduct attributes are not defined on some UDEV
11 # systems. Instead, catch all tty events and run the
12 # remote-device-remove script to cleanup stale mote device files.
13 DEVPATH=="/class/tty/*", ACTION=="remove", RUN+="/lib/udev/remote-device-remove"