udev rule for SLCAN devices

From: Yegor Yefremov <hidden>
Date: 2014-01-24 14:33:18

I've tried following hack to automatically add slcan0, when I attach
my USB-CAN adapter:
https://libbits.wordpress.com/2014/01/23/automatically-bring-up-slcan-device-via-udev/

It would be great, if we could unify the whole stuff and submit udev
rule and related script to systems or whatever project manages such
rules..

The script should perform following:

1. on add action start slcand, on remove action shutdown slcand
2. if we attach second device it should create slcan1 etc. and
shutdown related slcand for slcan1 etc.
3. as for now the bitrate must be configured in this script, it would
be really great, if SLCAN devices could change their speed via ntelink
interface, because in this case, the script would only care about
bringing interface/slcand up and down.

Let me know, what you think about it.

Regards,
Yegor
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help