Try to learn something about everything, and everything about somethingThomas Huxley “Darwin's bulldog” (1824-1895)

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
public:computers:laptop_freebsd [04/06/26 19:11 BST] – [/etc/rc.conf] johnpublic:computers:laptop_freebsd [05/06/26 09:43 BST] (current) – [Serial USB Adaptors] john
Line 146: Line 146:
  
 </code> </code>
 +
 +===== Serial USB Adaptors =====
 +
 +
 +To get access to a USB serial device as normal user (as long as I'm in the ''wheel'' group) I added a rule in ''/etc/devd.conf''
 +
 +<code bash>
 +notify 100 {
 +        match "system"          "DEVFS";
 +        match "subsystem"       "CDEV";
 +        match "type"            "CREATE";
 +        match "cdev"            "ttyU[0-9]+";
 +        action "chmod ug+rw /dev/$cdev";
 +
 +};
 +
 +</code>
 +
 +This makes the device R/W for the ''wheel'' group. Without this rule (the chmod part) the device is only R/W for root.
 +
  
 ===== Other Config Files ===== ===== Other Config Files =====