From 993e2ccf128ddf8e28bae9c80b5af676f33f0fdc Mon Sep 17 00:00:00 2001 From: Guillaume Rousse Date: Tue, 4 Sep 2012 21:28:12 +0200 Subject: [PATCH] capture less, post-process less --- lib/FusionInventory/Agent/Tools/Linux.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/FusionInventory/Agent/Tools/Linux.pm b/lib/FusionInventory/Agent/Tools/Linux.pm index e157f19a32..facb383c46 100644 --- a/lib/FusionInventory/Agent/Tools/Linux.pm +++ b/lib/FusionInventory/Agent/Tools/Linux.pm @@ -297,12 +297,11 @@ sub getInterfacesFromIfconfig { next; } - if ($line =~ /^(\S+)/) { + if ($line =~ /^([\w\d.]+)/) { # new interface my $ifname = $1; # ifconfig on Fedora 17 generates line like this one #em1: flags=4163 mtu 1500 - $ifname =~ s/:$//; my $status = 'Down'; if ($line =~ /flags=.*[<,]UP[>,]/) {