Skip to content

Commit

Permalink
capture less, post-process less
Browse files Browse the repository at this point in the history
  • Loading branch information
guillomovitch committed Sep 4, 2012
1 parent ba09203 commit 993e2cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/FusionInventory/Agent/Tools/Linux.pm
Expand Up @@ -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<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
$ifname =~ s/:$//;

my $status = 'Down';
if ($line =~ /flags=.*[<,]UP[>,]/) {
Expand Down

0 comments on commit 993e2cc

Please sign in to comment.