From b99e674aa19b8ca1043cd31705df21318ac04b47 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 27 May 2009 16:49:38 +0000 Subject: [PATCH] added udev rules file for arduino board --- door_daemon/options.c | 2 +- udev.rules | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 udev.rules diff --git a/door_daemon/options.c b/door_daemon/options.c index 55c1eef..b438808 100644 --- a/door_daemon/options.c +++ b/door_daemon/options.c @@ -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 index 0000000..f85377e --- /dev/null +++ b/udev.rules @@ -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" + -- 1.7.10.4