summaryrefslogtreecommitdiffstats
path: root/dhcp_wizard/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'dhcp_wizard/scripts')
-rw-r--r--dhcp_wizard/scripts/Dhcpconf.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/dhcp_wizard/scripts/Dhcpconf.pm b/dhcp_wizard/scripts/Dhcpconf.pm
index 7d5cb290..3a3a3e8d 100644
--- a/dhcp_wizard/scripts/Dhcpconf.pm
+++ b/dhcp_wizard/scripts/Dhcpconf.pm
@@ -38,7 +38,7 @@ sub do_it {
MDK::Common::cp_af($file, $file.".orig");
open(NEW, "> $file") or die "can not open $file: $!";
print NEW "INTERFACES=$wiz_device\n";
- close($file) or die "can not close $file: $!";
+ close(NEW) or die "can not close $file: $!";
$file = "/etc/rc.d/init.d/dhcpd";
# now patching etc/rc.d/init.d/dhcpd
if (!`grep INTERFACES $file`){
@@ -91,5 +91,7 @@ sub do_it {
$mdk{interfaces} = $wiz_device;
}
system("/etc/rc.d/init.d/dhcpd restart");
+ 10;
}
+1;