blob: a9432d0d745ea15ddd3407b9b3d10a32d66fe103 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
 | # fbsplash function.d script #
# Author: Greg Helton <gt@fallendusk.org> #
# Who is calling? #
CALLER=$0
printhlr() {
               printf "${C_OTHER}${PREFIX_REG} ${C_H1}${1}${C_CLEAR} \n"
           }
# splash stuff #
if [ -e /etc/conf.d/fbsplash.conf ]
then
	. /etc/conf.d/fbsplash.conf
	. /sbin/splash-functions.sh
# Redefine the stat functions #
	stat_runit() {
	#	printf "${C_OTHER}${PREFIX_REG} ${C_MAIN}${1}${C_CLEAR} "
	#	printf "${SAVE_POSITION}"
	 #	deltext
	#	printf "   ${C_OTHER}[${C_BUSY}BKGD${C_OTHER}]${C_CLEAR} "a
		 printf ""
                 printhlr "${C_MAIN}${1}${C_CLEAR} "
	        # Load variables #
        	var_load STEP_NR MAX_STEPS RC_MULTI RC_SYSINIT RC_SHUTDOWN
	        # Only update the splash progress if we're in sysinit, multi, or shutdown. #
        	        ((SPLASH_STEP_NR++))
	                SPLASH_PROGRESS=$((100*${SPLASH_STEP_NR}/${SPLASH_MAX_STEPS}))
        	        SPLASH_CURRENT_PROGRESS=${SPLASH_PROGRESS}
                	splash_update_progress ${SPLASH_PROGRESS}
	                var_save STEP_NR CURRENT_PROGRESS
	}
else
	stat_runit(){
		 printf ""
                 printhlr "${C_MAIN}${1}${C_CLEAR} "
	}
fi
 |