blob: 58f7d19cf231d83e0f2b3c092fc6ff26f9788d94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#!/usr/bin/openrc-run
description="Set FbConDecor backgrounds"
depend() {
# Make sure fbcondecor is up after xdm starts any dm
after consolefont
before elogind
}
start ()
{
. /etc/rc.d/functions.d/fbsplash-basic.sh
. /etc/conf.d/fbcondecor
. /usr/bin/splash-functions.sh
retval=0
[ -z "${SPLASH_TTYS%% }" ] && retval=1
if [ "${SPLASH_MODE_REQ}" != "off" ]; then
ebegin "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} || sleep 5 || retval=1
done
eend $?
fi
}
stop ()
{
ebegin "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
eend $?
}
|