From 179ec4e1f368dd63596ce1a63f4333451e146fd4 Mon Sep 17 00:00:00 2001 From: obrien Date: Mon, 6 Oct 1997 22:00:14 +0000 Subject: Change the cache file to /var/db/dhcp_cache Suggested by: Joao Carlos Mendes Luis --- net-mgmt/wide-dhcp/files/patch-az | 4 ++-- net-mgmt/wide-dhcp/pkg-plist | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'net-mgmt/wide-dhcp') diff --git a/net-mgmt/wide-dhcp/files/patch-az b/net-mgmt/wide-dhcp/files/patch-az index b01432c82fe2..9685efd580ee 100644 --- a/net-mgmt/wide-dhcp/files/patch-az +++ b/net-mgmt/wide-dhcp/files/patch-az @@ -14,7 +14,7 @@ To get the same address, .B dhcpc -creates file named "/etc/dhcp_cache". This file name could be -+creates file named "/var/tmp/dhcp_cache". This file name could be ++creates file named "/var/db/dhcp_cache". This file name could be configured when it is compiled. But it is required that the file must remains after the host reboot. For example, the /tmp directory is not appropriate for this purpose. @@ -45,7 +45,7 @@ .PD 0 .TP 20 -.B /etc/dhcp_cache -+.B /var/tmp/dhcp_cache ++.B /var/db/dhcp_cache The file to record previously assigned informations +.TP +.B /var/run/dhcpc.[interface name].pid diff --git a/net-mgmt/wide-dhcp/pkg-plist b/net-mgmt/wide-dhcp/pkg-plist index 1dfaa3c6fb0c..24f37b0da275 100644 --- a/net-mgmt/wide-dhcp/pkg-plist +++ b/net-mgmt/wide-dhcp/pkg-plist @@ -21,3 +21,4 @@ etc/rc.d/wide-dhcps.sh.sample @unexec echo "updating /etc/services"; cp /etc/services /etc/services.bak; (grep -v ^dhcps /etc/services.bak ) > /etc/services @exec echo "updating /etc/services"; cp /etc/services /etc/services.bak; (grep -v ^dhcpc /etc/services.bak ; echo "dhcpc 68/udp # dhcp client") > /etc/services @unexec echo "updating /etc/services"; cp /etc/services /etc/services.bak; (grep -v ^dhcpc /etc/services.bak ) > /etc/services +@unexec rm -f /var/db/dhcp_cache -- cgit