diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2010-09-04 22:54:43 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2010-09-04 22:54:43 (GMT) |
commit | 05408d178b3bb65f895b011705ade34c34b8dce6 (patch) | |
tree | 4d17239774a3993a00cb4df34ec9c68dd20dccbf /abs/core-testing/fbsplash/fbcondecor.daemon | |
parent | 8531795e06d39d7edfea9bb2731ff171417669d5 (diff) | |
download | linhes_pkgbuild-05408d178b3bb65f895b011705ade34c34b8dce6.zip linhes_pkgbuild-05408d178b3bb65f895b011705ade34c34b8dce6.tar.gz linhes_pkgbuild-05408d178b3bb65f895b011705ade34c34b8dce6.tar.bz2 |
fbsplash:Bumped/Updated for LinHES 7.
Diffstat (limited to 'abs/core-testing/fbsplash/fbcondecor.daemon')
-rw-r--r-- | abs/core-testing/fbsplash/fbcondecor.daemon | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/abs/core-testing/fbsplash/fbcondecor.daemon b/abs/core-testing/fbsplash/fbcondecor.daemon new file mode 100644 index 0000000..4d78ea4 --- /dev/null +++ b/abs/core-testing/fbsplash/fbcondecor.daemon @@ -0,0 +1,55 @@ +#!/bin/bash + +# /etc/rc.d/fbcondecor + +# Set FbConDecor backgrounds +# + +. /etc/rc.conf +. /etc/rc.d/functions +. /etc/conf.d/fbcondecor +. /sbin/splash-functions.sh + +splash_setup force + +retval=0 +[ -z "${SPLASH_TTYS%% }" ] && retval=1 +case "$1" +in start ) + if [ "${SPLASH_MODE_REQ}" != "off" ]; then + stat_busy "Setting FBconDecor console images" + for tty in ${SPLASH_TTYS}; do + # avoid blinking on boot + [[ "$( fbcondecor_ctl --tty=${tty} -c getstate )" == *\ on ]] && continue + fbcondecor_set_theme ${SPLASH_THEME} ${tty} || retval=1 + done + if [ $retval = 0 ]; then + stat_done + else + stat_fail + fi + fi +;; stop ) + stat_busy "Disabling FBconDecor console images" + for tty in ${SPLASH_TTYS}; do + # avoid errors on restart + [[ "$( fbcondecor_ctl --tty=${tty} -c getstate )" == *\ off ]] && continue + fbcondecor_ctl --tty=${tty} -c off || retval=1 + done + if [ $retval = 0 ]; then + stat_done + else + stat_fail + fi +;; restart ) + $0 stop + sleep .1 + echo # don't swallow our status line + $0 start +;; * ) + echo "usage: $0 {start|stop|restart}" +esac + +exit 0 + +# EOF # |