Created
December 10, 2019 18:55
-
-
Save shutingrz/4c0b9415a6c9203962e8c9b371e8b69e to your computer and use it in GitHub Desktop.
This file contains 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
#!/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