summaryrefslogblamecommitdiffstats
path: root/os-plugins/plugins/bootsplash/init-hooks/05-have-kernelvars/bootsplash.sh
blob: 657ae1e4da43d888110420fc4cfc06ea5690a47e (plain) (tree)
1
2
3
4
5
6
7





                                                          
                          




                                   


                                    
  
# 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