diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2009-04-03 06:22:08 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2009-04-03 06:22:08 +0000 |
commit | 2d34021858dc7ae239bf2047cfed05e1c01b8d70 (patch) | |
tree | 513d709b5797c2d418ddba92ae770b0a14d00e61 /collect.d | |
parent | feb45872c12481f498424bb6037c6dca85a643c2 (diff) | |
download | sitesummary-2d34021858dc7ae239bf2047cfed05e1c01b8d70.tar.gz sitesummary-2d34021858dc7ae239bf2047cfed05e1c01b8d70.tar.bz2 sitesummary-2d34021858dc7ae239bf2047cfed05e1c01b8d70.tar.xz |
* Get rid of error messages from laptop-detect when collecting system
information.
Diffstat (limited to 'collect.d')
-rw-r--r-- | collect.d/system | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/collect.d/system b/collect.d/system index 21909c7..1ea8196 100644 --- a/collect.d/system +++ b/collect.d/system @@ -44,7 +44,9 @@ cat /proc/mounts > procmounts # thin clients from diskless workstations. runlevel > runlevel -if [ -x /usr/sbin/laptop-detect ] && /usr/sbin/laptop-detect; then +# Throw away error message from laptop-detect using dmidecode in Xen +# domUs. See #438693 for more info. +if [ -x /usr/sbin/laptop-detect ] && /usr/sbin/laptop-detect 2>/dev/null; then touch laptop fi |