summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/bootsplash/init-hooks/05-have-kernelvars/bootsplash.sh
blob: 392b234e00ce532c92192fc4172f96ca4c203fa8 (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 no_bootsplash=0
else
  export no_bootsplash=1
fi

if [ ${no_bootsplash} -eq 0 ]; then
        /bin/splashy boot 2>/dev/null
        # add splashy.stop runlevel script
        D_SPLASHY=splashy.stop
fi