summaryrefslogtreecommitdiffstats
path: root/dhcp_wizard/Dhcp.pm
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2003-10-20 10:51:59 +0000
committerFlorent Villard <warly@mandriva.com>2003-10-20 10:51:59 +0000
commit306951e28791b261f894a8b71255b4c45d105661 (patch)
tree9fa88f156c8a6fa200986dc52b42ab43047e81f6 /dhcp_wizard/Dhcp.pm
parenteacbbd06a147d56f4edfaf008cc667b55577b3be (diff)
downloaddrakwizard-306951e28791b261f894a8b71255b4c45d105661.tar
drakwizard-306951e28791b261f894a8b71255b4c45d105661.tar.gz
drakwizard-306951e28791b261f894a8b71255b4c45d105661.tar.bz2
drakwizard-306951e28791b261f894a8b71255b4c45d105661.tar.xz
drakwizard-306951e28791b261f894a8b71255b4c45d105661.zip
change copyright
remove old xml related files
Diffstat (limited to 'dhcp_wizard/Dhcp.pm')
-rwxr-xr-xdhcp_wizard/Dhcp.pm11
1 files changed, 7 insertions, 4 deletions
diff --git a/dhcp_wizard/Dhcp.pm b/dhcp_wizard/Dhcp.pm
index b38ba025..3bb73ef1 100755
--- a/dhcp_wizard/Dhcp.pm
+++ b/dhcp_wizard/Dhcp.pm
@@ -2,8 +2,10 @@
# Drakwizard
-# Copyright (C) 2002 Arnaud Desmons <adesmons@mandrakesoft.com>
-# 2003 Florent Villard <warly@mandrakesoft.com>
+# Copyright (C) 2002, 2003 Mandrakesoft
+#
+# Authors: Arnaud Desmons <adesmons@mandrakesoft.com>
+# Florent Villard <warly@mandrakesoft.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -37,7 +39,8 @@ my $o = {
var => {
ip1 => '',
ip2 => '',
- interface => $wiz->{net}->default_itf()
+ wiz_authoritative => 0,
+ einterface => $wiz->{net}->default_itf()
},
needed_rpm => [ 'dhcp-server' ],
defaultimage => "$ENV{__WIZ_HOME__}dhcp_wizard/images/DHCP.png"
@@ -217,7 +220,7 @@ mask = $wiz_ip_netmask, rng1 = $wiz_ip_range1, rng2 = $wiz_ip_range2, dname = $w
$mdk{interfaces} = $wiz_device;
standalone::explanations("$file: lease_file = $mdk{lease_file}, interfaces = $mdk{interfaces}");
MDK::Wizard::Varspaceval->commit($file, \%mdk);
- !$ENV{wiz_authoritative} and output($file, map {
+ !$o-{var}{wiz_authoritative} and output($file, map {
s|^\s*not\s*authoritative.*|\#$&|i;
$_
} cat_ ("/etc/dhcpd.conf"));