From eafcc516f75bf7b3d71d1058663dc85cb08d4944 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Wed, 14 May 2025 17:41:30 -0700 Subject: add pi config files --- pi_configs/etc/systemd/system/can0.service | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 pi_configs/etc/systemd/system/can0.service (limited to 'pi_configs/etc/systemd/system') 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 -- cgit v1.2.3-70-g09d2