summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/bootsplash/init-hooks/05-have-kernelvars/bootsplash.sh
blob: a54fde96d8dab2cf3a226987a90384ccacd1aee9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# splashy depends on /proc/fb with VESA
# only activate with kernel option quiet and no debuglevel
if grep -q ".*" /proc/fb > /dev/null 2>&1 \
  && grep -qie " quiet " -qie "^quiet " -qie " 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.boot runlevel script
  export D_SPLASHY=splashy.boot
fi