summaryrefslogtreecommitdiffstats
path: root/abs/mv-core/runit-scripts-mv/fbsplash-runit.sh
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-08-29 16:29:01 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-08-29 16:29:01 (GMT)
commit25c30209666f591371476d272712e92e7173ce7c (patch)
tree6ea95b7567b6a094af18832bc36953b3f28dd12f /abs/mv-core/runit-scripts-mv/fbsplash-runit.sh
parent3eeb924c21ef82a144d1fa48c3dd2d571ea4f9bc (diff)
downloadlinhes_pkgbuild-25c30209666f591371476d272712e92e7173ce7c.zip
linhes_pkgbuild-25c30209666f591371476d272712e92e7173ce7c.tar.gz
linhes_pkgbuild-25c30209666f591371476d272712e92e7173ce7c.tar.bz2
mv-core: add fbsplash-runit
Diffstat (limited to 'abs/mv-core/runit-scripts-mv/fbsplash-runit.sh')
-rwxr-xr-xabs/mv-core/runit-scripts-mv/fbsplash-runit.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/abs/mv-core/runit-scripts-mv/fbsplash-runit.sh b/abs/mv-core/runit-scripts-mv/fbsplash-runit.sh
new file mode 100755
index 0000000..aa391b0
--- /dev/null
+++ b/abs/mv-core/runit-scripts-mv/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
+
+}