summarylogtreecommitdiffstats
path: root/90-c2_bus.rules
blob: edc0774d9c7f1f91464590cc3c5eb68b7dc94664 (plain)
1
2
KERNEL=="c2_gpio", SUBSYSTEM=="module", ACTION=="add", PROGRAM="/usr/bin/grep c2_gpio /proc/devices", RUN+="/usr/bin/bash -c '/usr/bin/mknod /dev/c2_bus c %c{1} 0 && /usr/bin/chmod 777 /dev/c2_bus'"
KERNEL=="c2_gpio", SUBSYSTEM=="module", ACTION=="remove", RUN+="/usr/bin/rm /dev/c2_bus"