summaryrefslogtreecommitdiff
path: root/scripts/vyatta-dhcpv6-client.pl
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-11-30 00:05:35 +0100
committerDaniil Baturin <daniil@baturin.org>2018-11-30 00:05:35 +0100
commit18fe96de5f9269cbb87cfb1c46d3baadf90eb59a (patch)
tree213943613ae430f8865a119964f2d1af58ae4744 /scripts/vyatta-dhcpv6-client.pl
parentf95015ec976933baee5cfa643002fbef2b4a32fe (diff)
parent0ebc3def62c13a19bcfb8d25ae479235ed376268 (diff)
downloadvyatta-cfg-system-18fe96de5f9269cbb87cfb1c46d3baadf90eb59a.tar.gz
vyatta-cfg-system-18fe96de5f9269cbb87cfb1c46d3baadf90eb59a.zip
Merge branch 'current' into crux
Diffstat (limited to 'scripts/vyatta-dhcpv6-client.pl')
-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"