From 4979ee980d221380fdfebda86b469adf28b39b76 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Sat, 27 Oct 2007 19:04:47 +0200 Subject: [PATCH] Replace check for /var/run/acpid.socket --- autoconfig.functions | 2 +- debian/changelog | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/autoconfig.functions b/autoconfig.functions index 8c534ac..f7d2af3 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -744,7 +744,7 @@ if [ -d /proc/acpi ]; then else ewarn "(none)" ; eend 1 fi - if ! [ -S /var/run/acpid.socket ] ; then + if ! ps x | grep -q /usr/sbin/acpid ; then if ! [ -r /var/run/dbus/pid ] ; then einfo "Starting acpi daemon." /etc/init.d/acpid start 1>>$DEBUG 2>&1 ; eend $? diff --git a/debian/changelog b/debian/changelog index 27372a0..a96c2fc 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +grml-autoconfig (0.7.26) unstable; urgency=low + + * Replace check for /var/run/acpid.socket with grepping + for a running acpid process because the socket file isn't + present reliable. + + -- Michael Prokop Sat, 27 Oct 2007 19:04:05 +0200 + grml-autoconfig (0.7.25) unstable; urgency=low * Move syslog startup to the begin of grml-autoconfig so we make -- 2.1.4