[projects/rc-scripts] - `ip link' command syntax changed between versions 3.15 and 3.16

adwol adwol at pld-linux.org
Mon Oct 6 14:20:42 CEST 2014


commit 3acb594f8ba559c8aaca79e0b7db100959d07286
Author: Adam Osuchowski <adwol at pld-linux.org>
Date:   Mon Oct 6 14:19:34 2014 +0200

    - `ip link' command syntax changed between versions 3.15 and 3.16

 lib/ifup | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lib/ifup b/lib/ifup
index 0aef00b..b0c6756 100755
--- a/lib/ifup
+++ b/lib/ifup
@@ -80,7 +80,7 @@ fi
 
 if [ -n "$MACVLAN_DEV" -a -n "$MACVLAN_MACADDR" ]; then
 	ip link del link ${MACVLAN_DEV} ${DEVICE} type macvlan > /dev/null 2>&1
-	ip link add link ${MACVLAN_DEV} address ${MACVLAN_MACADDR} ${DEVICE} type macvlan
+	ip link add link ${MACVLAN_DEV} address ${MACVLAN_MACADDR} name ${DEVICE} type macvlan
 fi
 
 # is this device available? (this catches PCMCIA devices for us)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/rc-scripts.git/commitdiff/3acb594f8ba559c8aaca79e0b7db100959d07286



More information about the pld-cvs-commit mailing list