mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Use INTERFACESv4 variable if defined https://sourceforge.net/p/webadmin/bugs/5556/
This commit is contained in:
@@ -38,7 +38,7 @@ elsif ($config{'interfaces_type'} eq 'debian') {
|
||||
if (-r "/etc/default/isc-dhcp-server") {
|
||||
# Debian 6+ uses a new environment file
|
||||
&read_env_file("/etc/default/isc-dhcp-server", \%dhcpd);
|
||||
$iface = $dhcpd{'INTERFACES'};
|
||||
$iface = $dhcpd{'INTERFACES'} || $dhcpd{'INTERFACESv4'};
|
||||
}
|
||||
elsif (-r "/etc/default/dhcp") {
|
||||
# New debian uses an environment file
|
||||
|
||||
@@ -57,7 +57,12 @@ elsif ($config{'interfaces_type'} eq 'debian') {
|
||||
if (-r "/etc/default/isc-dhcp-server") {
|
||||
# Write to Debian 6.0 environment file
|
||||
&read_env_file("/etc/default/isc-dhcp-server", \%dhcpd);
|
||||
$dhcpd{'INTERFACES'} = $iface;
|
||||
if (defined($dhcpd{'INTERFACESv4'})) {
|
||||
$dhcpd{'INTERFACESv4'} = $iface;
|
||||
}
|
||||
else {
|
||||
$dhcpd{'INTERFACES'} = $iface;
|
||||
}
|
||||
&write_env_file("/etc/default/isc-dhcp-server", \%dhcpd);
|
||||
}
|
||||
elsif (-r "/etc/default/dhcp") {
|
||||
|
||||
Reference in New Issue
Block a user