Skip to content

Instantly share code, notes, and snippets.

@3mb3dw0rk5
Created July 9, 2020 07:29
Show Gist options
  • Select an option

  • Save 3mb3dw0rk5/c98d26af122d6b6ed577a5153b46f7db to your computer and use it in GitHub Desktop.

Select an option

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
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