summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/fbsplash-runit.sh
diff options
context:
space:
mode:
authorMichael Hanson <mihanson@linhes.org>2011-09-07 16:46:21 (GMT)
committerMichael Hanson <mihanson@linhes.org>2011-09-07 16:46:21 (GMT)
commit3aaa5a507a52e3e387712e3732b2104704675301 (patch)
tree0a74580d961f637232625acc839981eb9d6fe94d /abs/core/runit-scripts/fbsplash-runit.sh
parent563b0f27dca6ff00a9ff69dc463911bfbd78e499 (diff)
parent8af79359c21b5f07981975c34a7d51ab063b249d (diff)
downloadlinhes_pkgbuild-3aaa5a507a52e3e387712e3732b2104704675301.zip
linhes_pkgbuild-3aaa5a507a52e3e387712e3732b2104704675301.tar.gz
linhes_pkgbuild-3aaa5a507a52e3e387712e3732b2104704675301.tar.bz2
Merge branch 'testing' of knoppmyth.net:linhes_pkgbuild into testing
Diffstat (limited to 'abs/core/runit-scripts/fbsplash-runit.sh')
-rwxr-xr-xabs/core/runit-scripts/fbsplash-runit.sh24
1 files changed, 15 insertions, 9 deletions
diff --git a/abs/core/runit-scripts/fbsplash-runit.sh b/abs/core/runit-scripts/fbsplash-runit.sh
index 90430dd..a9432d0 100755
--- a/abs/core/runit-scripts/fbsplash-runit.sh
+++ b/abs/core/runit-scripts/fbsplash-runit.sh
@@ -3,6 +3,9 @@
# 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 ]
@@ -13,13 +16,19 @@ then
# 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} "
+ # 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}
@@ -29,10 +38,7 @@ then
}
else
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} "
+ printf ""
+ printhlr "${C_MAIN}${1}${C_CLEAR} "
}
fi