[Unit] Description=CANable 2.0 CAN bus bringup (can0, 1 Mbps DroneCAN — Here4 GPS) Documentation=https://gitea.vayrette.com/seb/saltylab-firmware/issues/643 # Wait until the gs_usb net device appears; udev fires After=sys-subsystem-net-devices-can0.device After=network.target sys-subsystem-net-devices-can0.device Requires=sys-subsystem-net-devices-can0.device BindsTo=sys-subsystem-net-devices-can0.device [Service] Type=oneshot RemainAfterExit=yes ExecStart=/usr/sbin/ip link set can0 up type can bitrate 1000000 ExecStop=/usr/sbin/ip link set can0 down StandardOutput=journal StandardError=journal SyslogIdentifier=can-bringup [Install] WantedBy=multi-user.target