diff options
author | Arnaud Desmons <adesmons@mandriva.com> | 2002-10-15 16:10:00 +0000 |
---|---|---|
committer | Arnaud Desmons <adesmons@mandriva.com> | 2002-10-15 16:10:00 +0000 |
commit | 83eca6fa0dac3c5dbf68aff23d87ff5fca2e5a5c (patch) | |
tree | 4c26d86f98f9c21e47cc27df98ab8ef90e280455 /dhcp_wizard/scripts | |
parent | 7c9035918b08c4f2e6960a9664dbdd4e40e45c6a (diff) | |
download | drakwizard-83eca6fa0dac3c5dbf68aff23d87ff5fca2e5a5c.tar drakwizard-83eca6fa0dac3c5dbf68aff23d87ff5fca2e5a5c.tar.gz drakwizard-83eca6fa0dac3c5dbf68aff23d87ff5fca2e5a5c.tar.bz2 drakwizard-83eca6fa0dac3c5dbf68aff23d87ff5fca2e5a5c.tar.xz drakwizard-83eca6fa0dac3c5dbf68aff23d87ff5fca2e5a5c.zip |
wiz update, nfs fixed
Diffstat (limited to 'dhcp_wizard/scripts')
-rw-r--r-- | dhcp_wizard/scripts/Dhcpconf.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dhcp_wizard/scripts/Dhcpconf.pm b/dhcp_wizard/scripts/Dhcpconf.pm index 40c1bc5e..4cb9a21a 100644 --- a/dhcp_wizard/scripts/Dhcpconf.pm +++ b/dhcp_wizard/scripts/Dhcpconf.pm @@ -85,7 +85,7 @@ sub do_it { #[ -f /etc/sysconfig/dhcpd ] && cp -f /etc/sysconfig/dhcpd /var/tmp/wiz_bck/orig/dhcpd my $file = "/etc/sysconfig/dhcpd"; - MDK::Common::cp_af($file, $file.".orig"); + -f $file and MDK::Common::cp_af($file, $file.".orig"); $file = "/etc/rc.d/init.d/dhcpd"; # now patching etc/rc.d/init.d/dhcpd @@ -134,6 +134,11 @@ mask = $wiz_ip_netmask, rng1 = $wiz_ip_range1, rng2 = $wiz_ip_range2, dname = $w standalone::explanations("$file: lease_file = $mdk{lease_file}, interfaces = $mdk{interfaces}"); Vareqval->commit($file, \%mdk); } + !$ENV{wiz_authoritative} and output($file, map { + s|^\s*not\s*authoritative.*|\#$&|i; + $_; + } cat_ ("/etc/dhcpd.conf")); + system("/etc/rc.d/init.d/dhcpd restart"); 10; } |