summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/theme/init-hooks/05-have-kernelvars/theme.sh
blob: 440dda1271d1bf213a0980d515013295aed2eb44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# splashy depends on /proc/fb with VESA
# only activate with kernel option quiet and no debuglevel
if grep -E "(VESA|VGA)" /proc/fb > /dev/null 2>&1 \
  && grep -qi " quiet " /proc/cmdline > /dev/null 2>&1 \
  && [ $DEBUGLEVEL -eq 0 ] \
  && [ -e /bin/splashy ] ; then
  export theme_nosplash=0
else
  export theme_nosplash=1
fi

if [ ${theme_nosplash} -eq 0 ]; then
        # start splashy
        /bin/splashy boot 2>/dev/null
        
        # add splashy.stop (XX_theme) to runlevel scripts 
        echo 'D_INITSCRIPTS="${D_INITSCRIPTS} splashy.stop"' \
                >> /etc/sysconfig/config
fi