summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dhcp_wizard/scripts/Dhcpconf.pm2
1 files changed, 1 insertions, 1 deletions
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;