summarylogtreecommitdiffstats
path: root/90-c2_bus.rules
diff options
context:
space:
mode:
Diffstat (limited to '90-c2_bus.rules')
-rw-r--r--90-c2_bus.rules2
1 files changed, 2 insertions, 0 deletions
diff --git a/90-c2_bus.rules b/90-c2_bus.rules
new file mode 100644
index 00000000000..edc0774d9c7
--- /dev/null
+++ b/90-c2_bus.rules
@@ -0,0 +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"