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:
parent
5739923bdd
commit
a0c7876d74
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue