aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2008-06-11 21:18:12 +0000
committerPetter Reinholdtsen <pere@hungry.com>2008-06-11 21:18:12 +0000
commit83daba8c63a6c8be4f11a92377c2966b607e326e (patch)
tree324913353b301a04f3413900771ebf0695885dd2
parent6a9d82f05abe37749941020acdae960cbc0322e8 (diff)
downloadsitesummary-83daba8c63a6c8be4f11a92377c2966b607e326e.tar.gz
sitesummary-83daba8c63a6c8be4f11a92377c2966b607e326e.tar.bz2
sitesummary-83daba8c63a6c8be4f11a92377c2966b607e326e.tar.xz
Typo.
-rwxr-xr-xsitesummary-nodes20
1 files changed, 0 insertions, 20 deletions
diff --git a/sitesummary-nodes b/sitesummary-nodes
index cc0b376..c5b2f70 100755
--- a/sitesummary-nodes
+++ b/sitesummary-nodes
@@ -84,26 +84,6 @@ EOF
}
}
-sub get_primary_macaddress {
- my $hostid = shift;
- my $path = get_filepath_current($hostid, "/system/ifconfig-a");
- # XXX Not properly implemented, just pick the first interface
- my $macaddress;
- if (open (FILE, $path)) {
- while(<FILE>) {
- chomp;
- if (m/Link encap:Ethernet\s+HWaddr (\S+)\s+/) {
- $macaddress = $1;
- last;
- }
- }
- close(FILE);
- return $macaddress;
- } else {
- return undef;
- }
-}
-
sub print_ip_hw_list {
for my $hostname (sort keys %hostnames) {
my $macaddress = get_primary_macaddress($hostnames{$hostname});