Created
July 9, 2020 07:29
-
-
Save 3mb3dw0rk5/c98d26af122d6b6ed577a5153b46f7db to your computer and use it in GitHub Desktop.
Udev rule to automatically bring up socketcan interface with increased txqueuelen and baudrate of 500kBaud
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ACTION=="add", SUBSYSTEM=="net", ENV{INTERFACE}=="can*", RUN+="/usr/bin/ip link set $name txqueuelen 10000", RUN+="/usr/bin/ip link set $name type can bitrate 500000", RUN+="/usr/bin/ip link set up $name" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment