diff options
author | Xiao Pan <xyz@flylightning.xyz> | 2025-05-14 17:41:30 -0700 |
---|---|---|
committer | Xiao Pan <xyz@flylightning.xyz> | 2025-05-14 17:41:30 -0700 |
commit | eafcc516f75bf7b3d71d1058663dc85cb08d4944 (patch) | |
tree | 9d244154cd9b18e3b25b2e5ac8ef4bc6b43578c9 /pi_configs/etc/systemd/system | |
parent | 9f960f2ef4257ffc0bf367a858d10a58f6ceaf45 (diff) |
add pi config files
Diffstat (limited to 'pi_configs/etc/systemd/system')
-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 |