use only non-whitespace chars
[APKPM.git] / lib / H1 / Davolink.pm
index 4624e5d..06b4b24 100644 (file)
@@ -28,7 +28,13 @@ sub info {
                        warn "#S $line\n";
                }
        }
-
+        foreach my $line ( $telnet->cmd("ifconfig br0") ) {
+               chomp $line;
+               if ($line=~/^br0.*/) {
+                       my ($mac) = ($line=~/^br0.*HWaddr\s(\S+)/);
+                       $rec->{"MAC"} = $mac;
+               }
+       }
        return $rec;
 }