diff options
author | Jouke Witteveen <j.witteveen@gmail.com> | 2014-03-05 23:00:56 +0100 |
---|---|---|
committer | Jouke Witteveen <j.witteveen@gmail.com> | 2014-03-05 23:00:56 +0100 |
commit | 015f975586317cf851319e9616bdccfafdd81741 (patch) | |
tree | 7b6f3d6c1738fb2226fad93ed596496edb128e2f /src/lib/network | |
parent | 18226276c83dc153f11cd51f718c6fdb11e459f8 (diff) | |
download | netctl-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-x | src/lib/network | 3 |
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 |