diff --git a/config/can0.service b/config/can0.service new file mode 100644 index 0000000000000000000000000000000000000000..79ab4f934232725b57d2a4fcc5aacb2acadd8bc6 --- /dev/null +++ b/config/can0.service @@ -0,0 +1,11 @@ +[Unit] +Description=can0 interface setup + +[Service] +Type=simple +RemainAfterExit=yes +ExecStart=/sbin/ip link set can0 up type can bitrate 1000000 +ExecStop=/sbin/ip link set can0 down + +[Install] +WantedBy=basic.target diff --git a/version.toml b/version.toml index 8f9a5ebf2ba619a823c2f47a23b643f982d95656..c44a9f5a1b2ffe520d51c50a5d384d1c4a019d27 100644 --- a/version.toml +++ b/version.toml @@ -10,6 +10,15 @@ local_path = "updater" online_path = "bin/updater" permissions = 0o755 +################ +#config files: +################ +[entries.canConfig] +checksum = "cadc25e7eaa3e48ed9c8cf277c9301ea3381d213bed5f06a76405c30bebd2833" +local_path = "config/can0.service" +online_path = "/lib/systemd/system/can0.service" +permissions = 0o777 + ################ #library files: ################