aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--init/splash-manager.conf3
1 files changed, 1 insertions, 2 deletions
diff --git a/init/splash-manager.conf b/init/splash-manager.conf
index 8e3299cf..eea28ca4 100644
--- a/init/splash-manager.conf
+++ b/init/splash-manager.conf
@@ -13,8 +13,7 @@ script
elif [ "$RUNLEVEL" = "6" ]; then
MESSAGE=$"Restarting..."
fi
- initctl status prefdm 2>/dev/null > /tmp/cowcow
- if cat /tmp/cowcow | grep -q stop/waiting; then
+ if initctl status prefdm 2>/dev/null | grep -q stop/waiting; then
initctl emit splash-request IMMEDIATE=1 MODE=shutdown MESSAGE="$MESSAGE"
else
initctl emit splash-request MODE=shutdown MESSAGE="$MESSAGE"