1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

can: for integration test check if interface is up

This commit is contained in:
Niklas Eiling 2020-07-08 16:08:09 +02:00 committed by Steffen Vogel
parent 5739923bdd
commit a0c7876d74

View file

@ -35,6 +35,11 @@ CAN_IF=vcan0
NUM_SAMPLES=${NUM_SAMPLES:-10}
NUM_VALUES=${NUM_VALUES:-3}
# Check if vcan0 interface is present
if [[ ! $(ip link show "${CAN_IF}" up) ]]; then
echo "Did not find any vcan interface ${CAN_IF} or interface is not up"
exit 99
fi
#sudo modprobe vcan
#sudo ip link add dev vcan0 type vcan