diff options
Diffstat (limited to 'dhcp_wizard')
-rwxr-xr-x | dhcp_wizard/Dhcp.pm | 2 |
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, |