diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2006-11-19 20:53:16 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2006-11-19 20:53:16 +0000 |
commit | 2092f777498a194d4b27ca314fa0ceda1ebc6f07 (patch) | |
tree | 040028f0ce6810250fb66a847c2565ff9afe6e5b | |
parent | 490f1e72411564f03ec9dc4fd8504652a02e4452 (diff) | |
download | sitesummary-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.
-rw-r--r-- | debian/changelog | 7 | ||||
-rw-r--r-- | sitesummary-collector.cgi | 2 |
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"; |