Mageia Bugzilla – Attachment 2235 Details for
Bug 5772
Ethernet test fails when adding additional media
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Patch File
patch-oem.pl (text/plain), 461 bytes, created by
Derek Jennings
on 2012-05-10 02:17:45 CEST
(
hide
)
Description:
Patch File
Filename:
MIME Type:
Creator:
Derek Jennings
Created:
2012-05-10 02:17:45 CEST
Size:
461 bytes
patch
obsolete
>use network::tools; > >package network::tools; > >undef *connected; >#During install avoid using gethostbyname() >*connected = sub { > if ($::isInstall) { > if (! -e "/etc/resolv.conf") { > symlink "$::prefix/etc/resolv.conf", "/etc/resolv.conf"; > } > my $p=0; > my @a; > my $goodping="1 received"; > @a = `$::prefix/bin/ping -qc1 www.mageia.org`; > $p= grep /$goodping/,@a; > return $p; > } > gethostbyname("www.mageia.org") ? 1 : 0; >}
use network::tools; package network::tools; undef *connected; #During install avoid using gethostbyname() *connected = sub { if ($::isInstall) { if (! -e "/etc/resolv.conf") { symlink "$::prefix/etc/resolv.conf", "/etc/resolv.conf"; } my $p=0; my @a; my $goodping="1 received"; @a = `$::prefix/bin/ping -qc1 www.mageia.org`; $p= grep /$goodping/,@a; return $p; } gethostbyname("www.mageia.org") ? 1 : 0; }
View Attachment As Raw
Actions:
View
Attachments on
bug 5772
:
2196
|
2200
|
2230
|
2235
|
2238
|
2239
|
2303
|
2308
|
2309
|
2310