7 splashy_wait_till_ready() { debug_log "$0 ${FUNCNAME}"
10 /sbin/splashy_update "print" 2> /dev/null
12 while [ $? -ne 0 ]; do
13 [ $tries -ne 0 ] || return 1
16 /sbin/splashy_update "print" 2> /dev/null
19 debug_log "tries=$((50-$tries))"
22 splashy_print() { debug_log "$0 ${FUNCNAME}"
23 /sbin/splashy_update "print ${1}" 2> /dev/null
26 splashy_sysinit() { debug_log "$0 ${FUNCNAME}"
27 splashy_wait_till_ready
30 splashy_multi() { debug_log "$0 ${FUNCNAME}"
34 splashy_shutdown() { debug_log "$0 ${FUNCNAME}"
36 /sbin/splashy_chvt ${1}
38 splashy shutdown 2> /dev/null
40 splashy_wait_till_ready
43 splashy_kill() { debug_log "$0 ${FUNCNAME}"
45 while pidof splashy > /dev/null; do
46 [ $tries -ne 0 ] || return 1
49 kill -15 `pidof splashy`
51 pidof splashy > /dev/null || break
52 kill -9 `pidof splashy`
55 debug_log "tries=$((50-$tries))"
58 splashy_exit() { debug_log "$0 ${FUNCNAME}"
59 pidof splashy > /dev/null || return 1
61 /usr/bin/setterm -cursor off > /dev/tty8
63 /sbin/splashy_update "progress 100" 2> /dev/null
65 /sbin/splashy_update "exit" 2> /dev/null
70 if [ "$(fgconsole 2>/dev/null)" = "${1}" ]; then
71 clear > /dev/tty${1} || true
74 /usr/bin/setterm -cursor off > /dev/tty7
76 if [ -n "${2}" ]; then
77 if [ "$(fgconsole 2>/dev/null)" != "${2}" ]; then
78 /sbin/splashy_chvt ${2} || true
81 /sbin/splashy_chvt 1 || true
86 splashy_progress() { debug_log "$0 ${FUNCNAME}"
87 PROGRESS=$(((${1}*100)/${2}))
88 /sbin/splashy_update "progress ${PROGRESS}" 2> /dev/null