londonhackspace / Doorbot

old RFID door entry bot, now mostly just door announcers
26 stars 10 forks source link

udev rule for relay #25

Closed marksteward closed 10 years ago

marksteward commented 11 years ago

And make this part of the set-up instructions

JasperWallace commented 11 years ago

could just use /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AH01LDUR-if00-port0

I've added this udev rule, not really tested:

#
# Hopefully the serial is unique
#
KERNEL=="ttyUSB?", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="AH01LDUR", SYMLINK+="relay", MODE:="0600", OWNER:="doorbot"    
marksteward commented 10 years ago

Seems to work.