aboutsummaryrefslogtreecommitdiffstats
path: root/sitesummary-collector.cgi
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2006-11-19 20:53:16 +0000
committerPetter Reinholdtsen <pere@hungry.com>2006-11-19 20:53:16 +0000
commit2092f777498a194d4b27ca314fa0ceda1ebc6f07 (patch)
tree040028f0ce6810250fb66a847c2565ff9afe6e5b /sitesummary-collector.cgi
parent490f1e72411564f03ec9dc4fd8504652a02e4452 (diff)
downloadsitesummary-2092f777498a194d4b27ca314fa0ceda1ebc6f07.tar.gz
sitesummary-2092f777498a194d4b27ca314fa0ceda1ebc6f07.tar.bz2
sitesummary-2092f777498a194d4b27ca314fa0ceda1ebc6f07.tar.xz
* Fix regex used to extract eth0 MAC address, to avoid matching peth0
on a vmware box.
Diffstat (limited to 'sitesummary-collector.cgi')
-rw-r--r--sitesummary-collector.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/sitesummary-collector.cgi b/sitesummary-collector.cgi
index 6e4e676..bc5c712 100644
--- a/sitesummary-collector.cgi
+++ b/sitesummary-collector.cgi
@@ -94,7 +94,7 @@ sub extract_unique_id {
open(IFCONFIG, "system/ifconfig-a") || die "Unable to read ifconfig-a";
while (<IFCONFIG>) {
chomp;
- $eth0mac = $1 if (m/eth0\s+Link encap:Ethernet HWaddr (\S+)/);
+ $eth0mac = $1 if (m/^eth0\s+Link encap:Ethernet HWaddr (\S+)/);
}
close (IFCONFIG);
#print STDERR "MAC: $eth0mac\n";