projects
/
APKPM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use only non-whitespace chars
[APKPM.git]
/
lib
/
H1
/
Davolink.pm
diff --git
a/lib/H1/Davolink.pm
b/lib/H1/Davolink.pm
index
4624e5d
..
06b4b24
100644
(file)
--- a/
lib/H1/Davolink.pm
+++ b/
lib/H1/Davolink.pm
@@
-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;
}