From 614fceef66cf52fae3f05d65e98b930e85c2ae8c Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 30 Aug 2005 14:07:12 +0000 Subject: allow net_applet to use vlan/alias interfaces (thanks to Michael Scherer) --- perl-install/network/tools.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/network') diff --git a/perl-install/network/tools.pm b/perl-install/network/tools.pm index 0dcbcf515..bd3d99fce 100644 --- a/perl-install/network/tools.pm +++ b/perl-install/network/tools.pm @@ -236,7 +236,7 @@ sub host_hex_to_dotted { sub get_routes() { my %routes; foreach (cat_("/proc/net/route")) { - if (/^(\w+)\s+([0-9A-F]+)\s+([0-9A-F]+)\s+[0-9A-F]+\s+\d+\s+\d+\s+(\d+)\s+([0-9A-F]+)/) { + if (/^(\S+)\s+([0-9A-F]+)\s+([0-9A-F]+)\s+[0-9A-F]+\s+\d+\s+\d+\s+(\d+)\s+([0-9A-F]+)/) { if (hex($2)) { $routes{$1}{network} = host_hex_to_dotted($2) } elsif (hex($3)) { $routes{$1}{gateway} = host_hex_to_dotted($3) } if ($4) { $routes{$1}{metric} = $4 } -- cgit v1.2.1