aboutsummaryrefslogtreecommitdiffstats
path: root/CAN-binder/can_samples/init_vcan.sh
diff options
context:
space:
mode:
Diffstat (limited to 'CAN-binder/can_samples/init_vcan.sh')
-rwxr-xr-xCAN-binder/can_samples/init_vcan.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/CAN-binder/can_samples/init_vcan.sh b/CAN-binder/can_samples/init_vcan.sh
new file mode 100755
index 00000000..531dd1e1
--- /dev/null
+++ b/CAN-binder/can_samples/init_vcan.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+# example for setting up vcan0 and modules
+sudo modprobe can
+sudo modprobe vcan
+sudo ip link add dev vcan0 type vcan
+sudo ip link set up vcan0