summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorhagbard-01 <39653662+hagbard-01@users.noreply.github.com>2018-11-29 14:47:40 -0800
committerGitHub <noreply@github.com>2018-11-29 14:47:40 -0800
commit2e3a21804161ec21b5995e63adf9bbb60ca0006f (patch)
tree213943613ae430f8865a119964f2d1af58ae4744 /scripts
parent74c1a8e3262480b4863a9b86bee77e2f6bf0acd3 (diff)
parent6bd3ae4fe0b0ea70f26f0b85e39c9c6b01661b4b (diff)
downloadvyatta-cfg-system-2e3a21804161ec21b5995e63adf9bbb60ca0006f.tar.gz
vyatta-cfg-system-2e3a21804161ec21b5995e63adf9bbb60ca0006f.zip
Merge pull request #87 from gsadams/current
Fix: T1055: Wait for Duplicate Address Detection on the relevant interface
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-dhcpv6-client.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta-dhcpv6-client.pl b/scripts/vyatta-dhcpv6-client.pl
index c0b4cfeb..64c6840d 100755
--- a/scripts/vyatta-dhcpv6-client.pl
+++ b/scripts/vyatta-dhcpv6-client.pl
@@ -146,7 +146,7 @@ if (defined($start_flag) || defined ($renew_flag)) {
# https://phabricator.vyos.net/T903
for (my $attempt_count = 0; $attempt_count <= 60; $attempt_count++) {
# Check for any non-tentative addresses (exit code 0 if any exist, 1 otherwise)
- if (system("test -n \"\$(ip -6 -o addr show dev eth0 scope link -tentative)\"") != 0) {
+ if (system("test -n \"\$(ip -6 -o addr show dev $ifname scope link -tentative)\"") != 0) {
# No non-tentative address found, sleep and retry or exit
if ($attempt_count == 0) {
print "Duplicate address detection incomplete, waiting\n"