added udev rules file for arduino board
authorChristian Pointner <equinox@realraum.at>
Wed, 27 May 2009 16:49:38 +0000 (16:49 +0000)
committerChristian Pointner <equinox@realraum.at>
Wed, 27 May 2009 16:49:38 +0000 (16:49 +0000)
door_daemon/options.c
udev.rules [new file with mode: 0644]

index 55c1eef..b438808 100644 (file)
@@ -199,7 +199,7 @@ void options_default(options_t* opt)
   opt->pid_file_ = NULL;
   string_list_init(&opt->log_targets_);
 
-  opt->door_dev_ = strdup("/dev/ttyUSB0");
+  opt->door_dev_ = strdup("/dev/door");
   opt->command_sock_ = strdup("/var/run/door_daemon");
 }
 
diff --git a/udev.rules b/udev.rules
new file mode 100644 (file)
index 0000000..f85377e
--- /dev/null
@@ -0,0 +1,7 @@
+# ardiuno tuer rules
+#
+# copy this to /etc/udev/rules.d/ and change serial number to your needs
+
+
+SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", ATTRS{serial}=="A40015qH", SYMLINK+="door"
+