[Splashy-devel] Bug#504389: patch
Tim Richardson
tim at tim-richardson.net
Thu Nov 6 10:30:33 UTC 2008
here is the patch I made, which fixes it on my two Intel laptops
--- a/scripts/init.d/splashy
+++ b/scripts/init.d/splashy
@@ -165,11 +165,30 @@
;;
stop)
check_to_enable
-
# avoid displaying ugly text at shutdown
clear >/dev/tty8
clear >/dev/tty1
- /sbin/splashy_chvt 8
+ # wait for all gdm servers to exit (Bug# 504389)
+ COUNTER=0
+ ATTEMPTS=10
+ set +e
+ while [ $COUNTER -lt $ATTEMPTS ]; do
+ ps -C "gdm"
+ if [ $? -eq 0 ]; then
+ sleep 0.5
+ COUNTER=`expr $COUNTER + 1` #works in dash
+ else
+ break
+ fi
+ done
+ set -e
+ echo $COUNTER
+ if [ $COUNTER -eq $ATTEMPTS ]; then
+ logger -s "splashy stopping because gdm is still active"
+ exit
+ fi
+
+ /sbin/splashy_chvt 8
calculate_steps
More information about the Splashy-devel
mailing list