From 2211d8a5e88d14f72210f81ec605990ff5d372d5 Mon Sep 17 00:00:00 2001 From: Jonathan Sanabria Date: Wed, 7 Sep 2022 09:39:19 -0400 Subject: [PATCH] renaming can0 to emuccan0 in systemd service. --- emuccan.service | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/emuccan.service b/emuccan.service index 4c07fac..7392ead 100644 --- a/emuccan.service +++ b/emuccan.service @@ -12,9 +12,9 @@ EnvironmentFile=/etc/default/emuccan # emucd is hardcoded(!) to use /ttyACM[0-9] which is terrible, so we have # created a udev rule to put it at /dev/ttyACM9 interface. This is # terrible, but works for now. -ExecStart=/usr/bin/emucd_64 -s${EMUCCAN_SPEED} /dev/ttyACM9 can0 can1 -ExecStartPost=/sbin/ip link set can0 up qlen 1000 -ExecStartPost=/sbin/ip link set can1 up qlen 1000 +ExecStart=/usr/bin/emucd_64 -s${EMUCCAN_SPEED} /dev/ttyACM9 emuccan0 emuccan1 +ExecStartPost=/sbin/ip link set emuccan0 up qlen 1000 +ExecStartPost=/sbin/ip link set emuccan1 up qlen 1000 ExecStop=/usr/bin/pkill -2 emucd_64 Restart=always RestartSec=5