summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaud Desmons <adesmons@mandriva.com>2002-07-26 15:15:32 +0000
committerArnaud Desmons <adesmons@mandriva.com>2002-07-26 15:15:32 +0000
commit65cfc6766d8b9cc92148aeab9b9238021b53944b (patch)
treed4919010e7133d2b5c9ce350b36d370eb4aaa01a
parent2b0ceb8ee52cebbe77d2b3a67f93cc60f4e0c007 (diff)
downloaddrakwizard-65cfc6766d8b9cc92148aeab9b9238021b53944b.tar
drakwizard-65cfc6766d8b9cc92148aeab9b9238021b53944b.tar.gz
drakwizard-65cfc6766d8b9cc92148aeab9b9238021b53944b.tar.bz2
drakwizard-65cfc6766d8b9cc92148aeab9b9238021b53944b.tar.xz
drakwizard-65cfc6766d8b9cc92148aeab9b9238021b53944b.zip
added a return value and fixed a bug
-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;