Make virtual CAN device name as argument
authorRomain Forlot <romain.forlot@iot.bzh>
Fri, 21 Apr 2017 07:17:31 +0000 (09:17 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Fri, 21 Apr 2017 07:17:31 +0000 (09:17 +0200)
Change-Id: I6ae48b36171fbc038c9a3a8841d9dbadf7686ee3
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
CAN-binder/can_samples/init_vcan.sh

index 65eb1b1..d016289 100755 (executable)
@@ -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