9 |
local args |
local args |
10 |
|
|
11 |
# check for a framebuffer console first! |
# check for a framebuffer console first! |
12 |
[[ ! -e /dev/fb0 ]] && return 0 |
[[ ! -e ${SPLASH_DEV} ]] && return 0 |
13 |
# proc must be mounted too |
# proc must be mounted too |
14 |
[[ ! -e /proc/cmdline ]] && return 0 |
[[ ! -e /proc/cmdline ]] && return 0 |
15 |
# only run fbsplash if theme was found |
# only run fbsplash if theme was found |
80 |
-s ${SPLASH_THEMES}/${SPLASH_THEME}/startup-${resolution}.ppm.gz \ |
-s ${SPLASH_THEMES}/${SPLASH_THEME}/startup-${resolution}.ppm.gz \ |
81 |
-m ${SPLASH_THEMES}/${SPLASH_THEME}/splash-font.gz \ |
-m ${SPLASH_THEMES}/${SPLASH_THEME}/splash-font.gz \ |
82 |
-f ${SPLASH_FIFO} \ |
-f ${SPLASH_FIFO} \ |
83 |
|
-d ${SPLASH_DEV} \ |
84 |
${SPLASH_OPTS} & |
${SPLASH_OPTS} & |
85 |
|
|
86 |
wait_for_fbsplash |
wait_for_fbsplash |
93 |
-s ${SPLASH_THEMES}/${SPLASH_THEME}/shutdown-${resolution}.ppm.gz \ |
-s ${SPLASH_THEMES}/${SPLASH_THEME}/shutdown-${resolution}.ppm.gz \ |
94 |
-m ${SPLASH_THEMES}/${SPLASH_THEME}/splash-font.gz \ |
-m ${SPLASH_THEMES}/${SPLASH_THEME}/splash-font.gz \ |
95 |
-f ${SPLASH_FIFO} \ |
-f ${SPLASH_FIFO} \ |
96 |
|
-d ${SPLASH_DEV} \ |
97 |
${SPLASH_OPTS} & |
${SPLASH_OPTS} & |
98 |
|
|
99 |
wait_for_fbsplash |
wait_for_fbsplash |
106 |
-s ${SPLASH_THEMES}/${SPLASH_THEME}/reboot-${resolution}.ppm.gz \ |
-s ${SPLASH_THEMES}/${SPLASH_THEME}/reboot-${resolution}.ppm.gz \ |
107 |
-m ${SPLASH_THEMES}/${SPLASH_THEME}/splash-font.gz \ |
-m ${SPLASH_THEMES}/${SPLASH_THEME}/splash-font.gz \ |
108 |
-f ${SPLASH_FIFO} \ |
-f ${SPLASH_FIFO} \ |
109 |
|
-d ${SPLASH_DEV} \ |
110 |
${SPLASH_OPTS} & |
${SPLASH_OPTS} & |
111 |
|
|
112 |
wait_for_fbsplash |
wait_for_fbsplash |