--- trunk/busybox/splash-functions.rc 2011/07/01 14:17:30 1398 +++ trunk/busybox/splash-functions.rc 2012/04/19 15:13:51 1744 @@ -42,6 +42,26 @@ case $1 in rc_init) rc_init ;; rc_verbose|rc_exit) rc_exit ;; + # redraw splash image and text + svc_started) + if [[ ${runlevel} = boot ]] || [[ ${runlevel} = sysinit ]] + then + splash_control "image:" + splash_control "write:${SPLASH_BOOT_MESSAGE}" + fi + ;; + svc_stopped) + if [[ ${runlevel} = shutdown ]] + then + splash_control "image:" + splash_control "write:${SPLASH_SHUTDOWN_MESSAGE}" + fi + if [[ ${runlevel} = reboot ]] + then + splash_control "image:" + splash_control "write:${SPLASH_REBOOT_MESSAGE}" + fi + ;; esac } @@ -55,7 +75,7 @@ chvt ${SPLASH_TTY} sleep 0.5 - if [[ $runlevel = boot ]] || [[ ${runlevel} = sysinit ]] + if [[ ${runlevel} = boot ]] || [[ ${runlevel} = sysinit ]] then fbsplash -i ${SPLASH_THEMES}/${SPLASH_THEME}/${resolution}.conf \ -s ${SPLASH_THEMES}/${SPLASH_THEME}/startup-${resolution}.ppm.gz \ @@ -79,7 +99,7 @@ splash_control "write:${SPLASH_SHUTDOWN_MESSAGE}" fi - if [[ $runlevel = reboot ]] + if [[ ${runlevel} = reboot ]] then fbsplash -i ${SPLASH_THEMES}/${SPLASH_THEME}/${resolution}.conf \ -s ${SPLASH_THEMES}/${SPLASH_THEME}/reboot-${resolution}.ppm.gz \