From: Michael Prokop Date: Fri, 22 Jul 2011 20:29:13 +0000 (+0200) Subject: config_acpi_apm(): redirect stderr of ps to debug log. X-Git-Tag: v0.9.33~1 X-Git-Url: https://git.grml.org/?p=grml-autoconfig.git;a=commitdiff_plain;h=25a9d31e5df272d4cb63ae607f2f3744db0add16;hp=bed08f407e9fca64a9885f576c645a7a254bb564;ds=sidebyside config_acpi_apm(): redirect stderr of ps to debug log. See issue1011 -> "ps of procps complains about "Non-standard uts for running kernel" when running kernel 3.0-grml64". --- diff --git a/autoconfig.functions b/autoconfig.functions index 5e7c807..3d5410e 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -720,7 +720,7 @@ if [ -d /proc/acpi ]; then 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 $?