summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/network/tools.pm2
1 files changed, 1 insertions, 1 deletions
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 }