From a896d47b3871b71cb7f15b25689aac85eb6d455f Mon Sep 17 00:00:00 2001 From: Arnaud Desmons Date: Fri, 6 Sep 2002 12:06:35 +0000 Subject: test dhcpd.conf before cp --- dhcp_wizard/scripts/Dhcpconf.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dhcp_wizard') diff --git a/dhcp_wizard/scripts/Dhcpconf.pm b/dhcp_wizard/scripts/Dhcpconf.pm index 995da298..5b31a53d 100644 --- a/dhcp_wizard/scripts/Dhcpconf.pm +++ b/dhcp_wizard/scripts/Dhcpconf.pm @@ -91,7 +91,7 @@ sub do_it { system("mv $tmp $file"); } $file = "/etc/dhcpd.conf"; - MDK::Common::cp_af($file, $file.".orig"); + -f $file and MDK::Common::cp_af($file, $file.".orig"); output($file, map { s|__hname__|$wiz_host_name|g; s|__net__|$wiz_ip_net|g; -- cgit v1.2.1