summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/theme/init-hooks/05-have-kernelvars/theme.sh
blob: 8fdec8d7487342d3e156568cce078410e4543119 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 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
        /bin/splashy boot 2>/dev/null
        # add splashy.stop runlevel script
        D_SPLASHY=splashy.stop
fi