diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-04-21 09:17:31 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-04-21 09:17:31 +0200 |
commit | 1a67a9c8647c7fa48ee435f033f336e5f83ac270 (patch) | |
tree | a1338acedfe4f2e1120ede69e02e4ba8b558aa35 /CAN-binder | |
parent | 32ce34b9d6bbd2fab151f58f4529fcb6a586f891 (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')
-rwxr-xr-x | CAN-binder/can_samples/init_vcan.sh | 4 |
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 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 |