aboutsummaryrefslogtreecommitdiffstats
path: root/CAN-binder/can_samples/init_vcan.sh
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-04-21 09:17:31 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-04-21 09:17:31 +0200
commit1a67a9c8647c7fa48ee435f033f336e5f83ac270 (patch)
treea1338acedfe4f2e1120ede69e02e4ba8b558aa35 /CAN-binder/can_samples/init_vcan.sh
parent32ce34b9d6bbd2fab151f58f4529fcb6a586f891 (diff)
Make virtual CAN device name as argument
Change-Id: I6ae48b36171fbc038c9a3a8841d9dbadf7686ee3 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'CAN-binder/can_samples/init_vcan.sh')
-rwxr-xr-xCAN-binder/can_samples/init_vcan.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/CAN-binder/can_samples/init_vcan.sh b/CAN-binder/can_samples/init_vcan.sh
index 65eb1b11..d016289c 100755
--- a/CAN-binder/can_samples/init_vcan.sh
+++ b/CAN-binder/can_samples/init_vcan.sh
@@ -2,5 +2,5 @@
# example for setting up vcan0 and modules
sudo modprobe can
sudo modprobe vcan
-sudo ip link add dev can0 type vcan
-sudo ip link set up can0
+sudo ip link add dev $1 type vcan
+sudo ip link set up $1