aboutsummaryrefslogtreecommitdiff
path: root/comms/telldus-core/files/patch-tdadmin-freebsd-devd-tellstick.conf
blob: 7e75e2db7d1a8de7d5c9466d1a7b529678b55ca4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
--- tdadmin/freebsd-devd-tellstick.conf	2014-04-06 22:40:11.000000000 +0200
+++ tdadmin/freebsd-devd-tellstick.conf	2014-04-06 20:37:50.501751596 +0200
@@ -0,0 +1,36 @@
+# Original Tellstick
+notify 10 {
+	match "system" "USB";
+	match "subsystem" "DEVICE";
+	match "type" "ATTACH";
+	match "vendor" "0x1781";
+	match "product" "0x0c30";
+	action "chgrp dialer /dev/$cdev; chmod 660 /dev/$cdev; @CMAKE_INSTALL_PREFIX@/sbin/tdadmin --pid $product --vid $vendor --serial $sernum controller connect";
+};
+
+notify 10 {
+	match "system" "USB";
+	match "subsystem" "DEVICE";
+	match "type" "DETACH";
+	match "vendor" "0x1781";
+	match "product" "0x0c30";
+	action "@CMAKE_INSTALL_PREFIX@/sbin/tdadmin --pid $product --vid $vendor --serial $sernum controller disconnect";
+};
+# Tellstick Duo
+notify 10 {
+	match "system" "USB";
+	match "subsystem" "DEVICE";
+	match "type" "ATTACH";
+	match "vendor" "0x1781";
+	match "product" "0x0c31";
+	action "chgrp dialer /dev/$cdev; chmod 660 /dev/$cdev; @CMAKE_INSTALL_PREFIX@/sbin/tdadmin --pid $product --vid $vendor --serial $sernum controller connect";
+};
+
+notify 10 {
+	match "system" "USB";
+	match "subsystem" "DEVICE";
+	match "type" "DETACH";
+	match "vendor" "0x1781";
+	match "product" "0x0c31";
+	action "@CMAKE_INSTALL_PREFIX@/sbin/tdadmin --pid $product --vid $vendor --serial $sernum controller disconnect";
+};