Skip to content

Commit 66c3ef0

Browse files
committed
add more modules explicitly and run in strict mode
1 parent d26ec8b commit 66c3ef0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

setup-vcan.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
#!/usr/bin/env bash
22

3+
set -eup pipefail
4+
5+
sudo modprobe vcan can_raw can_bcm
6+
37
interface_name="${1:-vcan0}"
48

59
sudo ip link add dev "$interface_name" type vcan
610
sudo ip link set up "$interface_name"
11+
712
if ! sudo modprobe can_isotp
813
then
914
echo "Failed to load the ISOTP module, related unit tests will probably fail"
10-
fi
15+
fi

0 commit comments

Comments
 (0)