daemon requires to be halted to not interfere

This commit is contained in:
2024-02-15 00:33:50 +01:00
parent 231e9a238d
commit 13611fadb3
2 changed files with 22 additions and 8 deletions

View File

@@ -4,11 +4,14 @@ sudo ip link set $1 down
ARGS=$(ip link | awk 'BEGIN{ORS=" "};/can.*/{ if(/can.*:/){print $2};if(/alias/){print $2,"\n"} }' | grep $1: | awk '{print $1,$2}' | awk 'BEGIN{FS="_"}{print $1,$2}' | awk '{print $3,$2}')
echo $1 $ARGS $2 $3
sudo systemctl stop icsscand.service
sleep 3
sudo libicsneo-setbaud $ARGS $2 $3
sudo systemctl start icsscand.service
sleep 3
sudo ip link set $1 up
echo $ARGS