diff options
author | James Meyer <james.meyer@operamail.com> | 2013-12-09 17:57:09 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2013-12-09 17:58:42 (GMT) |
commit | bbf857eb8190fce32a4191e61dd28b890a7ea059 (patch) | |
tree | 12adb85e321d5adfc4ca5b3c9ab75567275a15ae /abs/core/runit-scripts/fbsplash-runit.sh | |
parent | fa1c09c45b64e180f8deb8c7d4858e1a2eb5fb01 (diff) | |
download | linhes_pkgbuild-bbf857eb8190fce32a4191e61dd28b890a7ea059.zip linhes_pkgbuild-bbf857eb8190fce32a4191e61dd28b890a7ea059.tar.gz linhes_pkgbuild-bbf857eb8190fce32a4191e61dd28b890a7ea059.tar.bz2 |
runit-scripts: fix cron and frontend logging to their own file
Diffstat (limited to 'abs/core/runit-scripts/fbsplash-runit.sh')
-rw-r--r-- | abs/core/runit-scripts/fbsplash-runit.sh | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/abs/core/runit-scripts/fbsplash-runit.sh b/abs/core/runit-scripts/fbsplash-runit.sh new file mode 100644 index 0000000..9fb9591 --- /dev/null +++ b/abs/core/runit-scripts/fbsplash-runit.sh @@ -0,0 +1,37 @@ +# fbsplash functions.d runit script # + +printhlr() { + printf "${C_OTHER}${PREFIX_REG} ${C_H1}${1}${C_CLEAR} \n" + } + +stat_runit(){ + printf "" + printhlr "${C_MAIN}${1}${C_CLEAR} " +} + + +# splash stuff # +if [ -e /etc/conf.d/fbcondecor ] +then + . /etc/conf.d/fbcondecor + . /sbin/splash-functions.sh + + case $0 in /etc/runit/1 ) + # Prevent splash destruction + CONSOLEFONT="" + # Continue to use a splash daemon started in initcpio + if /bin/mountpoint -q /run/.splash-cache; then + /bin/mount --move /run/.splash-cache $spl_cachedir || return + # Mount a tmpfs + else + ( splash_cache_prep ) || return + fi + + splash_comm_send set message "$SPLASH_BOOT_MESSAGE" + + ;; /etc/runit/3 ) + ( splash_cache_prep ) || return + + splash_comm_send set message "$SPLASH_SHUTDOWN_MESSAGE" + esac +fi |