summaryrefslogtreecommitdiffstats
path: root/src/lib/network
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2014-03-05 23:00:56 +0100
committerJouke Witteveen <j.witteveen@gmail.com>2014-03-05 23:00:56 +0100
commit015f975586317cf851319e9616bdccfafdd81741 (patch)
tree7b6f3d6c1738fb2226fad93ed596496edb128e2f /src/lib/network
parent18226276c83dc153f11cd51f718c6fdb11e459f8 (diff)
downloadnetctl-015f975586317cf851319e9616bdccfafdd81741.tar.gz
netctl-015f975586317cf851319e9616bdccfafdd81741.tar.xz
Fix adding of interfaces
`shift 3` doesn't do anything if there are only 2 parameters.
Diffstat (limited to 'src/lib/network')
-rwxr-xr-xsrc/lib/network3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/network b/src/lib/network
index a875101..0250c3d 100755
--- a/src/lib/network
+++ b/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