diff options
author | sever-sever <v.gletenko@vyos.io> | 2020-09-23 11:54:35 +0000 |
---|---|---|
committer | sever-sever <v.gletenko@vyos.io> | 2020-09-23 11:54:35 +0000 |
commit | 10bae5251f4f98fe861dedfaba0f818529190695 (patch) | |
tree | 9f7c7120a98be41f9f57223b0b78ebe8856f0015 /scripts | |
parent | 4c96e35b1ab072ca9bba2496e079cb0aba18b7c4 (diff) | |
download | vyatta-cfg-system-10bae5251f4f98fe861dedfaba0f818529190695.tar.gz vyatta-cfg-system-10bae5251f4f98fe861dedfaba0f818529190695.zip |
cfg-system: T2896: Fix DHCP interface lease file name
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/vyatta-dhcp-helper.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta-dhcp-helper.pl b/scripts/vyatta-dhcp-helper.pl index 4b236503..1001430e 100644 --- a/scripts/vyatta-dhcp-helper.pl +++ b/scripts/vyatta-dhcp-helper.pl @@ -18,7 +18,7 @@ sub get_dhcp_router { if (!Vyatta::Misc::is_dhcp_enabled($dhcp_iface,0)) { return "127.0.0.1"; } - my $lease = "/var/lib/dhcp/dhclient_${dhcp_iface}_lease"; + my $lease = "/var/lib/dhcp/dhclient_${dhcp_iface}.lease"; my $router = `grep new_routers= $lease | cut -d"'" -f2`; my @r = split(/,/, $router); $router = $r[0]; |