From 1a67a9c8647c7fa48ee435f033f336e5f83ac270 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Fri, 21 Apr 2017 09:17:31 +0200 Subject: Make virtual CAN device name as argument Change-Id: I6ae48b36171fbc038c9a3a8841d9dbadf7686ee3 Signed-off-by: Romain Forlot --- CAN-binder/can_samples/init_vcan.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CAN-binder/can_samples') diff --git a/CAN-binder/can_samples/init_vcan.sh b/CAN-binder/can_samples/init_vcan.sh index 65eb1b1..d016289 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 -- cgit 1.2.3-korg