summaryrefslogtreecommitdiffstats
path: root/src/lib/connections/ethernet
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2014-02-27 12:48:12 +0100
committerJouke Witteveen <j.witteveen@gmail.com>2014-02-27 13:48:48 +0100
commitbcca0a027786c0d23f3f70c9f21b3332f41786e1 (patch)
tree5fbd7b516753e23e2a8785d9730c2a86f692ca38 /src/lib/connections/ethernet
parent05959bbbae46724d9abe1c32ca69eaaf2ca20722 (diff)
downloadnetctl-bcca0a027786c0d23f3f70c9f21b3332f41786e1.tar.gz
netctl-bcca0a027786c0d23f3f70c9f21b3332f41786e1.tar.xz
Add option to bypass Duplicate Address Detection
After several requests, here is SkipDAD to bypass Duplicate Address Detection.
Diffstat (limited to 'src/lib/connections/ethernet')
-rw-r--r--src/lib/connections/ethernet4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/connections/ethernet b/src/lib/connections/ethernet
index 3db69a0..ce00dc3 100644
--- a/src/lib/connections/ethernet
+++ b/src/lib/connections/ethernet
@@ -19,7 +19,9 @@ ethernet_up() {
return 1
fi
- if ! is_yes "${SkipNoCarrier:-no}"; then
+ if is_yes "${SkipNoCarrier:-no}"; then
+ SkipDAD=yes
+ else
# Some cards are plain slow to come up. Don't fail immediately.
if ! timeout_wait "${TimeoutCarrier:-5}" '(( $(< "/sys/class/net/$Interface/carrier") ))'; then
report_error "No connection found on interface '$Interface' (timeout)"