Skip to content

Instantly share code, notes, and snippets.

@shutingrz
Created December 10, 2019 18:55
Show Gist options
  • Save shutingrz/4c0b9415a6c9203962e8c9b371e8b69e to your computer and use it in GitHub Desktop.
Save shutingrz/4c0b9415a6c9203962e8c9b371e8b69e to your computer and use it in GitHub Desktop.
#!/bin/sh
if [ $# -ne 1 ]; then
echo "Usage: $0 [bitrate]"
exit 1
fi
sudo ip link set can0 type can bitrate $1
sudo ip link set can0 txqueuelen 1000
sudo ip link set can0 up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment