From c024c24c059a98992ee4d3724eff8c8df978bf59 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 10 Mar 2014 14:36:14 +0100 Subject: [PATCH] netctl: add patch from upstream to fix interface addition. --- ...975586317cf851319e9616bdccfafdd81741.patch | 23 +++++++++++++++++++ srcpkgs/netctl/template | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/netctl/patches/015f975586317cf851319e9616bdccfafdd81741.patch diff --git a/srcpkgs/netctl/patches/015f975586317cf851319e9616bdccfafdd81741.patch b/srcpkgs/netctl/patches/015f975586317cf851319e9616bdccfafdd81741.patch new file mode 100644 index 00000000000..59032cdc10e --- /dev/null +++ b/srcpkgs/netctl/patches/015f975586317cf851319e9616bdccfafdd81741.patch @@ -0,0 +1,23 @@ +From 015f975586317cf851319e9616bdccfafdd81741 Mon Sep 17 00:00:00 2001 +From: Jouke Witteveen +Date: Wed, 05 Mar 2014 22:00:56 +0000 +Subject: Fix adding of interfaces + +`shift 3` doesn't do anything if there are only 2 parameters. +--- +diff --git a/src/lib/network b/src/lib/network +index a875101..0250c3d 100755 +--- src/lib/network ++++ src/lib/network +@@ -17,8 +17,7 @@ is_interface() { + # $4...: additional arguments + interface_add() { + local type="$1" name="$2" link="$3" +- shift 3 +- ip link add ${link:+link "$link"} name "$name" type "$type" "$@" || return ++ do_debug ip link add ${link:+link "$link"} name "$name" type "$type" "${@:4}" || return + if [[ -x "$PROFILE_DIR/interfaces/$name" ]]; then + source "$PROFILE_DIR/interfaces/$name" + fi +-- +cgit v0.9.2-18-g5137 diff --git a/srcpkgs/netctl/template b/srcpkgs/netctl/template index 98b525cca79..da9bf1b51fa 100644 --- a/srcpkgs/netctl/template +++ b/srcpkgs/netctl/template @@ -1,7 +1,7 @@ # Template file for 'netctl' pkgname=netctl version=1.5 -revision=1 +revision=2 hostmakedepends="pkg-config" makedepends="iproute2 openresolv dhcpcd wpa_supplicant dialog systemd-devel" depends="iproute2 openresolv dhcpcd wpa_supplicant dialog systemd"