diff options
author | James Meyer <james.meyer@operamail.com> | 2009-04-10 16:44:42 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2009-04-10 16:44:42 (GMT) |
commit | 5e80643fcd0df6419f18bccba6594a251eb2d179 (patch) | |
tree | 02eba330ea85211042a4fa4fcb0c9147c77d3e8a /abs/core-testing/runit-scripts/fbsplash-runit.sh | |
parent | 6a486a28262c43e8ae2c1a742b4ffd4b29eaf0d0 (diff) | |
download | linhes_pkgbuild-5e80643fcd0df6419f18bccba6594a251eb2d179.zip linhes_pkgbuild-5e80643fcd0df6419f18bccba6594a251eb2d179.tar.gz linhes_pkgbuild-5e80643fcd0df6419f18bccba6594a251eb2d179.tar.bz2 |
runit-scripts: added fbsplash-runit.sh and general cleanup to make text pretty
Diffstat (limited to 'abs/core-testing/runit-scripts/fbsplash-runit.sh')
-rwxr-xr-x | abs/core-testing/runit-scripts/fbsplash-runit.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/abs/core-testing/runit-scripts/fbsplash-runit.sh b/abs/core-testing/runit-scripts/fbsplash-runit.sh new file mode 100755 index 0000000..aa391b0 --- /dev/null +++ b/abs/core-testing/runit-scripts/fbsplash-runit.sh @@ -0,0 +1,27 @@ +# fbsplash function.d script # +# Author: Greg Helton <gt@fallendusk.org> # + +# Who is calling? # +CALLER=$0 + +# splash stuff # +. /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} " + # 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 + +} |