From 7321669f9cb118f2dc366e35843b801cca310feb Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Fri, 11 Aug 2023 21:54:26 +0200 Subject: T5428: move dhclient files ro /run/dhclient --- lib/Vyatta/Misc.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Vyatta/Misc.pm b/lib/Vyatta/Misc.pm index 7d47b3c..001fc93 100755 --- a/lib/Vyatta/Misc.pm +++ b/lib/Vyatta/Misc.pm @@ -183,13 +183,13 @@ sub is_address_enabled { # return dhclient related files for interface sub generate_dhclient_intf_files { my $intf = shift; - my $dhclient_dir = '/var/lib/dhcp/'; + my $dhclient_dir = '/run/dhclient/'; $intf =~ s/\./_/g; my $intf_config_file = $dhclient_dir . 'dhclient_' . $intf . '.conf'; my $intf_process_id_file = $dhclient_dir . 'dhclient_' . $intf . '.pid'; my $intf_leases_file = $dhclient_dir . 'dhclient_' . $intf . '.leases'; - + return ( $intf_config_file, $intf_process_id_file, $intf_leases_file ); } -- cgit v1.2.3