aboutsummaryrefslogtreecommitdiffstats
path: root/hotplug/phidgets
diff options
context:
space:
mode:
Diffstat (limited to 'hotplug/phidgets')
-rw-r--r--hotplug/phidgets7
1 files changed, 7 insertions, 0 deletions
diff --git a/hotplug/phidgets b/hotplug/phidgets
new file mode 100644
index 0000000..f9fbb48
--- /dev/null
+++ b/hotplug/phidgets
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+if [ "$ACTION" = "add" ] && [ -f "$DEVICE" ]
+then
+ chmod 666 "$DEVICE"
+fi
+