aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/splash.sh13
1 files changed, 9 insertions, 4 deletions
diff --git a/scripts/splash.sh b/scripts/splash.sh
index 152fb1e..5ac549d 100644
--- a/scripts/splash.sh
+++ b/scripts/splash.sh
@@ -145,7 +145,9 @@ fi
num=$(( $nbservices + 2 ))
# Initialize and print text string..
-if [ "$progress" == 1 -o "$1" == "start" -o "$1" == "suspend" ]; then
+if [ "$progress" == 1 -o "$1" == "start" -o "$1" == "suspend" -o -f /dev/.splashy_shutdown ]; then
+
+ [ ! -f /dev/.splashy_shutdown ] || /sbin/splashy_update repaint || exit 0
# depending on the languages, we need to use a font different of
# the default one; in such case the font must be accessible, or
# the translation is disabled.
@@ -243,17 +245,18 @@ if [ "$progress" == 1 -o "$1" == "start" -o "$1" == "suspend" ]; then
esac
fi
- if test "$_shutdown" == "yes"; then
+ if test "$_shutdown" == "yes" -o -f /dev/.splashy_shutdown ; then
gprintf "Shutting down the system..."
if [ "$splash_mode" = "bootsplash" ]; then
[[ -f /etc/bootsplash/themes/$theme/config/bootsplash-$res.cfg ]] && bootsplash_run -s -u 0 /etc/bootsplash/themes/$theme/config/bootsplash-$res.cfg
bootsplash_write "silent"
chvt 1
- elif [ "$splash_mode" = "splashy" ]; then
+ elif [ "$splash_mode" = "splashy" -a ! -f /dev/.splashy_shutdown ]; then
/sbin/splashy_chvt 8
/sbin/splashy shutdown
pidof splashy > /dev/.splashy.pid
cat /dev/.splashy.pid >> /var/run/sendsigs.omit
+ touch /dev/.splashy_shutdown
fi
elif [ "$1" == "suspend" ]; then
gprintf "Suspending the system..."
@@ -261,7 +264,7 @@ if [ "$progress" == 1 -o "$1" == "start" -o "$1" == "suspend" ]; then
[[ -f /etc/bootsplash/themes/$theme/config/hibernate-$res.cfg ]] && bootsplash_run -s -u 0 /etc/bootsplash/themes/$theme/config/hibernate-$res.cfg
bootsplash_write "silent"
chvt 1
- elif [ "$splash_mode" = "splashy" ]; then
+ elif [ "$splash_mode" = "splashy" -a ! -f /dev/.splashy_shutdown ]; then
/sbin/splashy_chvt 8
/sbin/splashy shutdown
pidof splashy > /dev/.splashy.pid
@@ -280,8 +283,10 @@ if [ "$progress" == 1 -o "$1" == "start" -o "$1" == "suspend" ]; then
if [ "$text_x" != "" -a "$text_y" != "" \
-a "$text_color" != "" -a "$text_size" != "" -a "$_silent" == "yes" -o "$_shutdown" == "yes" -o "$1" == "suspend" ]; then
gprintf "Press Esc for verbose mode."
+ splashy_is_running && /sbin/splashy_update repaint || exit 0
fbtruetype.static -x $text_x -y $text_y -t $text_color -s $text_size \
$custom_font "$_boot $TEXT"
+ rm -f /dev/.splashy_shutdown
fi
fi