diff options
Diffstat (limited to 'pi_configs/etc/systemd/system/can0.service')
-rw-r--r-- | pi_configs/etc/systemd/system/can0.service | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pi_configs/etc/systemd/system/can0.service b/pi_configs/etc/systemd/system/can0.service new file mode 100644 index 0000000..70b59df --- /dev/null +++ b/pi_configs/etc/systemd/system/can0.service @@ -0,0 +1,11 @@ +[Unit] +Description=Setup can0 CAN bus +After=network.target + +[Service] +Type=oneshot +ExecStart=sh -c 'ip link set can0 up type can bitrate 500000; \ + ifconfig can0 txqueuelen 65536' + +[Install] +WantedBy=multi-user.target |