diff options
author | Christian Breunig <christian@breunig.cc> | 2023-08-11 21:54:26 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-08-11 21:54:58 +0200 |
commit | 7321669f9cb118f2dc366e35843b801cca310feb (patch) | |
tree | 0faec146d78455a12f65743a06df0c6b3f69e226 | |
parent | 009f55ab7f7e51d032ae24a1141afd2e7c00f26c (diff) | |
download | vyatta-cfg-7321669f9cb118f2dc366e35843b801cca310feb.tar.gz vyatta-cfg-7321669f9cb118f2dc366e35843b801cca310feb.zip |
T5428: move dhclient files ro /run/dhclient
-rwxr-xr-x | lib/Vyatta/Misc.pm | 4 |
1 files 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 ); } |