diff options
Diffstat (limited to 'dhcp_wizard')
-rw-r--r-- | dhcp_wizard/scripts/Dhcpconf.pm | 4 |
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"; |