42 |
case $1 in |
case $1 in |
43 |
rc_init) rc_init ;; |
rc_init) rc_init ;; |
44 |
rc_verbose|rc_exit) rc_exit ;; |
rc_verbose|rc_exit) rc_exit ;; |
45 |
|
# redraw splash image and text |
46 |
|
svc_started) |
47 |
|
if [[ ${runlevel} = boot ]] || [[ ${runlevel} = sysinit ]] |
48 |
|
then |
49 |
|
splash_control "image:" |
50 |
|
splash_control "write:${SPLASH_BOOT_MESSAGE}" |
51 |
|
fi |
52 |
|
;; |
53 |
|
svc_stopped) |
54 |
|
if [[ ${runlevel} = shutdown ]] |
55 |
|
then |
56 |
|
splash_control "image:" |
57 |
|
splash_control "write:${SPLASH_SHUTDOWN_MESSAGE}" |
58 |
|
fi |
59 |
|
if [[ ${runlevel} = reboot ]] |
60 |
|
then |
61 |
|
splash_control "image:" |
62 |
|
splash_control "write:${SPLASH_REBOOT_MESSAGE}" |
63 |
|
fi |
64 |
|
;; |
65 |
esac |
esac |
66 |
} |
} |
67 |
|
|
75 |
chvt ${SPLASH_TTY} |
chvt ${SPLASH_TTY} |
76 |
sleep 0.5 |
sleep 0.5 |
77 |
|
|
78 |
if [[ $runlevel = boot ]] || [[ ${runlevel} = sysinit ]] |
if [[ ${runlevel} = boot ]] || [[ ${runlevel} = sysinit ]] |
79 |
then |
then |
80 |
fbsplash -i ${SPLASH_THEMES}/${SPLASH_THEME}/${resolution}.conf \ |
fbsplash -i ${SPLASH_THEMES}/${SPLASH_THEME}/${resolution}.conf \ |
81 |
-s ${SPLASH_THEMES}/${SPLASH_THEME}/startup-${resolution}.ppm.gz \ |
-s ${SPLASH_THEMES}/${SPLASH_THEME}/startup-${resolution}.ppm.gz \ |
99 |
splash_control "write:${SPLASH_SHUTDOWN_MESSAGE}" |
splash_control "write:${SPLASH_SHUTDOWN_MESSAGE}" |
100 |
fi |
fi |
101 |
|
|
102 |
if [[ $runlevel = reboot ]] |
if [[ ${runlevel} = reboot ]] |
103 |
then |
then |
104 |
fbsplash -i ${SPLASH_THEMES}/${SPLASH_THEME}/${resolution}.conf \ |
fbsplash -i ${SPLASH_THEMES}/${SPLASH_THEME}/${resolution}.conf \ |
105 |
-s ${SPLASH_THEMES}/${SPLASH_THEME}/reboot-${resolution}.ppm.gz \ |
-s ${SPLASH_THEMES}/${SPLASH_THEME}/reboot-${resolution}.ppm.gz \ |