aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/changelog7
-rw-r--r--sitesummary-collector.cgi2
2 files changed, 8 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index ae5bb9b..40efb63 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+sitesummary (0.0.20) UNRELEASED; urgency=low
+
+ * Fix regex used to extract eth0 MAC address, to avoid matching peth0
+ on a vmware box.
+
+ -- Petter Reinholdtsen <pere@debian.org> Sun, 19 Nov 2006 21:52:41 +0100
+
sitesummary (0.0.19) unstable; urgency=low
[ Luk Claes ]
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";