diff options
-rw-r--r-- | dhcp_wizard/scripts/Dhcpconf.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dhcp_wizard/scripts/Dhcpconf.pm b/dhcp_wizard/scripts/Dhcpconf.pm index 1358c8fd..7d5cb290 100644 --- a/dhcp_wizard/scripts/Dhcpconf.pm +++ b/dhcp_wizard/scripts/Dhcpconf.pm @@ -57,6 +57,7 @@ sub do_it { } close(OLD); close(NEW); + chomp($tmp); system("mv $tmp $file"); } $file = "/etc/dhcpd.conf"; @@ -79,6 +80,7 @@ sub do_it { } close(OLD); close(NEW); + chomp($tmp); system("mv $tmp $file"); system("touch /var/dhcpd/dhcpd.leases") or die "can not touch /var/dhcpd/dhcd.leases: $!"; # modifying webmin config |