aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2016-10-23 16:52:01 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2016-10-23 16:52:01 -0700
commit7a057b6ab2dc644f7b292666f4363a72df47a03d (patch)
tree5503aab749d8715c6999576efec9693d1670141b
parentiproute2: treat EEXIST error on routes as non-fatal. (diff)
downloadnetifrc-7a057b6ab2dc644f7b292666f4363a72df47a03d.tar.gz
netifrc-7a057b6ab2dc644f7b292666f4363a72df47a03d.tar.bz2
netifrc-7a057b6ab2dc644f7b292666f4363a72df47a03d.zip
iproute2: handle other error case better.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r--net/iproute2.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/iproute2.sh b/net/iproute2.sh
index 779d334..2c9f6bb 100644
--- a/net/iproute2.sh
+++ b/net/iproute2.sh
@@ -203,7 +203,7 @@ _add_address()
$msgfunc "Address ${address}${netmask:+/}${netmask} already existed: $(ip addr show to "${address}/${family_maxnetmask}" dev "${IFACE}" 2>&1)"
[ $abort -eq 1 ] && rc=1
else
- # TODO: Handle other errors
+ : # TODO: Handle other errors
fi
fi
return $rc
@@ -275,7 +275,7 @@ _add_route()
$msgfunc "Route '$cmd' already existed: $(ip $family route show $cmd dev "${IFACE}" 2>&1)"
[ $abort -eq 1 ] && rc=1
else
- # TODO: Handle other errors
+ : # TODO: Handle other errors
fi
fi
eend $rc