netctl: add patch from upstream to fix interface addition.

This commit is contained in:
Juan RP 2014-03-10 14:36:14 +01:00
parent 27011d628e
commit c024c24c05
2 changed files with 24 additions and 1 deletions

View File

@ -0,0 +1,23 @@
From 015f975586317cf851319e9616bdccfafdd81741 Mon Sep 17 00:00:00 2001
From: Jouke Witteveen <j.witteveen@gmail.com>
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

View File

@ -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"