summaryrefslogtreecommitdiffstats
path: root/dhcp_wizard/scripts/Dhcpconf.pm
diff options
context:
space:
mode:
Diffstat (limited to 'dhcp_wizard/scripts/Dhcpconf.pm')
-rw-r--r--dhcp_wizard/scripts/Dhcpconf.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcp_wizard/scripts/Dhcpconf.pm b/dhcp_wizard/scripts/Dhcpconf.pm
index 9c38736a..1358c8fd 100644
--- a/dhcp_wizard/scripts/Dhcpconf.pm
+++ b/dhcp_wizard/scripts/Dhcpconf.pm
@@ -57,7 +57,7 @@ sub do_it {
}
close(OLD);
close(NEW);
- MDK::Common::cp_af($tmp, $file);
+ system("mv $tmp $file");
}
$file = "/etc/dhcpd.conf";
MDK::Common::cp_af($file, $file.".orig");
@@ -79,7 +79,7 @@ sub do_it {
}
close(OLD);
close(NEW);
- MDK::Common::cp_af($tmp, $file);
+ system("mv $tmp $file");
system("touch /var/dhcpd/dhcpd.leases") or die "can not touch /var/dhcpd/dhcd.leases: $!";
# modifying webmin config
$file="/etc/webmin/dhcpd/config";