summaryrefslogtreecommitdiffstats
path: root/dhcp_wizard
diff options
context:
space:
mode:
authorAntoine Ginies <aginies@mandriva.com>2004-09-07 07:43:16 +0000
committerAntoine Ginies <aginies@mandriva.com>2004-09-07 07:43:16 +0000
commit9f49bf8acf6db41dfcab0585365f58a9cba690e2 (patch)
tree6e8872b39cb2e67e44374e628caf66e8d7e4a17b /dhcp_wizard
parent035489857aaac1e742b78e13eed3a7c1a0896ce5 (diff)
downloaddrakwizard-9f49bf8acf6db41dfcab0585365f58a9cba690e2.tar
drakwizard-9f49bf8acf6db41dfcab0585365f58a9cba690e2.tar.gz
drakwizard-9f49bf8acf6db41dfcab0585365f58a9cba690e2.tar.bz2
drakwizard-9f49bf8acf6db41dfcab0585365f58a9cba690e2.tar.xz
drakwizard-9f49bf8acf6db41dfcab0585365f58a9cba690e2.zip
fix pb of netmask
Diffstat (limited to 'dhcp_wizard')
-rwxr-xr-xdhcp_wizard/Dhcp.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/dhcp_wizard/Dhcp.pm b/dhcp_wizard/Dhcp.pm
index feecc40b..c850bc9c 100755
--- a/dhcp_wizard/Dhcp.pm
+++ b/dhcp_wizard/Dhcp.pm
@@ -195,6 +195,7 @@ sub do_it {
my $wiz_ip_range1 = $o->{var}{ip1};
my $wiz_ip_range2 = $o->{var}{ip2};
my $wiz_ip_netmask = $wiz->{net}->itf_get("NETMASK");
+ if (!$wiz_ip_netmask) { $wiz_ip_netmask = "255.255.255.0" }
my $wiz_device = $o->{var}{interface};
# patch to rewrite when got new file about dhcp with INTERFACES value
# currently, I put the device to configure as dhcp server
@@ -233,6 +234,7 @@ sub do_it {
s|__dname__|$wiz_domain_name|g;
s|__gateway__|$o->{var}{gateway}|g;
s|__tftpserverip__|$wiz_tftpserverip|g;
+ s|__dhcpd_interface__|$wiz_device|g;
$_;
} cat_("/usr/share/wizards//dhcp_wizard/scripts/dhcpd.conf.default"));
standalone::explanations("$file: hname = $wiz_host_name, net = $wiz_ip_net, ip = $wiz_ip_server,