We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d26ec8b commit 66c3ef0Copy full SHA for 66c3ef0
setup-vcan.sh
@@ -1,10 +1,15 @@
1
#!/usr/bin/env bash
2
3
+set -eup pipefail
4
+
5
+sudo modprobe vcan can_raw can_bcm
6
7
interface_name="${1:-vcan0}"
8
9
sudo ip link add dev "$interface_name" type vcan
10
sudo ip link set up "$interface_name"
11
12
if ! sudo modprobe can_isotp
13
then
14
echo "Failed to load the ISOTP module, related unit tests will probably fail"
-fi
15
+fi
0 commit comments