config_acpi_apm(): redirect stderr of ps to debug log.
authorMichael Prokop <mika@grml.org>
Fri, 22 Jul 2011 20:29:13 +0000 (22:29 +0200)
committerMichael Prokop <mika@grml.org>
Fri, 22 Jul 2011 20:29:15 +0000 (22:29 +0200)
See issue1011 -> "ps of procps complains about "Non-standard uts
for running kernel" when running kernel 3.0-grml64".

autoconfig.functions

index 5e7c807..3d5410e 100755 (executable)
@@ -720,7 +720,7 @@ if [ -d /proc/acpi ]; then
     else
       ewarn "(none)" ; eend 1
     fi
     else
       ewarn "(none)" ; eend 1
     fi
-    if ! ps x | grep -q /usr/sbin/acpid ; then
+    if ! ps x 2>>$DEBUG | grep -q /usr/sbin/acpid ; then
       if ! [ -r /var/run/dbus/pid ] ; then
         einfo "Starting acpi daemon."
         /etc/init.d/acpid start >>$DEBUG 2>&1 ; eend $?
       if ! [ -r /var/run/dbus/pid ] ; then
         einfo "Starting acpi daemon."
         /etc/init.d/acpid start >>$DEBUG 2>&1 ; eend $?