Mageia Bugzilla – Attachment 12071 Details for
Bug 11940
drakwizards dhcpd and dns only provide eth0 interface
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Dhcp.pm patch
file_11940.txt (text/plain), 526 bytes, created by
Nicolas Nicolas
on 2020-12-13 09:04:56 CET
(
hide
)
Description:
Dhcp.pm patch
Filename:
MIME Type:
Creator:
Nicolas Nicolas
Created:
2020-12-13 09:04:56 CET
Size:
526 bytes
patch
obsolete
>--- Dhcp.pm.ori 2020-12-08 22:38:24.197952464 +0100 >+++ Dhcp.pm 2020-12-08 23:07:51.539902566 +0100 >@@ -58,7 +58,7 @@ > name => N("Interface the dhcp server must listen to"), > pre => sub { > if (!$wiz_ip_server) { >- my $interface = 'eth0'; >+ my $interface = `route | grep default | tr -s " " | cut -d " " -f8`; > ($wiz_ip_server) = `/sbin/ip addr show dev $interface` =~ /^\s*inet\s+(\d+\.\d+\.\d+\.\d+)/m; > } > $o->{var}{interface} |= $wiz->{net}->default_itf;
--- Dhcp.pm.ori 2020-12-08 22:38:24.197952464 +0100 +++ Dhcp.pm 2020-12-08 23:07:51.539902566 +0100 @@ -58,7 +58,7 @@ name => N("Interface the dhcp server must listen to"), pre => sub { if (!$wiz_ip_server) { - my $interface = 'eth0'; + my $interface = `route | grep default | tr -s " " | cut -d " " -f8`; ($wiz_ip_server) = `/sbin/ip addr show dev $interface` =~ /^\s*inet\s+(\d+\.\d+\.\d+\.\d+)/m; } $o->{var}{interface} |= $wiz->{net}->default_itf;
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 11940
: 12071 |
12072