From b3866feda5ef2679ea32b67690c8f9234178ddf8 Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Mon, 31 Mar 2014 17:17:43 +0400 Subject: [PATCH] Improved vcan_init --- libuavcan_drivers/linux/scripts/vcan_init | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libuavcan_drivers/linux/scripts/vcan_init b/libuavcan_drivers/linux/scripts/vcan_init index 047262611e..16a75eeac1 100755 --- a/libuavcan_drivers/linux/scripts/vcan_init +++ b/libuavcan_drivers/linux/scripts/vcan_init @@ -5,9 +5,9 @@ HELP="Initializes and brings up a virtual CAN interface. Usage: - `basename $0` + `basename $0` Example: - `basename $0` 0" + `basename $0` vcan0" function die() { echo $@ >&2; exit 1; } @@ -17,7 +17,7 @@ if [ "$1" == '--help' ] || [ "$1" == '-h' ]; then echo "$HELP"; exit; fi # --------------------------------------------------------- -IFACE="vcan$1" +IFACE="$1" if [ $(ifconfig -a | grep -c "^$IFACE") -eq "1" ]; then ifconfig $IFACE up