second commit
This commit is contained in:
parent
fca20ef90a
commit
5543140a11
8
462e-udev-rules/DEBIAN/control
Executable file
8
462e-udev-rules/DEBIAN/control
Executable file
@ -0,0 +1,8 @@
|
||||
Package: 462e-udev-rules
|
||||
Section: non-free
|
||||
Priority: optional
|
||||
Version: 0.0.1-3
|
||||
Maintainer: Jonathan Roth <j@462eng.fr>
|
||||
Architecture: all
|
||||
Requires: udev
|
||||
Description: 462eng udev rules
|
||||
4
462e-udev-rules/DEBIAN/postinst
Executable file
4
462e-udev-rules/DEBIAN/postinst
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
echo "Reloading udev rules and triggering them..."
|
||||
udevadm control --reload-rules
|
||||
udevadm trigger
|
||||
12
462e-udev-rules/etc/udev/rules.d/z462-462eng_devices.rules
Normal file
12
462e-udev-rules/etc/udev/rules.d/z462-462eng_devices.rules
Normal file
@ -0,0 +1,12 @@
|
||||
# 462eng udev rules
|
||||
# some are device specific, some are quite generic
|
||||
|
||||
# 462eng PWSTU Modbus USB Interface
|
||||
# PWSTU move and delete, so 462e-PWSTU always appears as /dev/pwstu and not as /dev/ttyUSB*
|
||||
ACTION=="add", SUBSYSTEM=="tty", ATTRS{product}=="462eng PWSTU", RUN+="/usr/bin/mv /dev/%k /dev/pwstu"
|
||||
ACTION=="remove", SUBSYSTEM=="tty", ATTRS{product}=="462eng PWSTU", RUN+="/usr/bin/rm -f /dev/pwstu"
|
||||
|
||||
# 462eng PWSTU as UPDI Programmer
|
||||
ACTION=="add", SUBSYSTEM=="tty", ATTRS{product}=="462eng UPDI", RUN+="/usr/bin/mv /dev/%k /dev/pwupdi"
|
||||
ACTION=="remove", SUBSYSTEM=="tty", ATTRS{product}=="462eng UPDI", RUN+="/usr/bin/rm -f /dev/pwupdi"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user