summaryrefslogtreecommitdiffstats
path: root/src/lib/network
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2014-03-01 21:44:34 +0100
committerJouke Witteveen <j.witteveen@gmail.com>2014-03-01 22:17:13 +0100
commit6d83ce0798af47143a9698847f05b272e3fcb7e0 (patch)
tree3950e69786654fd7593165a40fb69e4123bef3b1 /src/lib/network
parent23ae1791917d48da7237d918f19dfa55a6a13d8f (diff)
downloadnetctl-6d83ce0798af47143a9698847f05b272e3fcb7e0.tar.gz
netctl-6d83ce0798af47143a9698847f05b272e3fcb7e0.tar.xz
Minor improvements to bridge/vlan code
Diffstat (limited to 'src/lib/network')
-rwxr-xr-xsrc/lib/network2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/network b/src/lib/network
index b91b5e8..a875101 100755
--- a/src/lib/network
+++ b/src/lib/network
@@ -18,7 +18,7 @@ is_interface() {
interface_add() {
local type="$1" name="$2" link="$3"
shift 3
- ip link add ${link:+link "$link"} name "$name" type "$type" "$@"
+ ip link add ${link:+link "$link"} name "$name" type "$type" "$@" || return
if [[ -x "$PROFILE_DIR/interfaces/$name" ]]; then
source "$PROFILE_DIR/interfaces/$name"
fi