summaryrefslogtreecommitdiffstats
path: root/src/os-plugins/plugins/bootsplash/init-hooks/05-have-kernelvars/bootsplash.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/os-plugins/plugins/bootsplash/init-hooks/05-have-kernelvars/bootsplash.sh')
-rw-r--r--src/os-plugins/plugins/bootsplash/init-hooks/05-have-kernelvars/bootsplash.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/os-plugins/plugins/bootsplash/init-hooks/05-have-kernelvars/bootsplash.sh b/src/os-plugins/plugins/bootsplash/init-hooks/05-have-kernelvars/bootsplash.sh
new file mode 100644
index 00000000..a54fde96
--- /dev/null
+++ b/src/os-plugins/plugins/bootsplash/init-hooks/05-have-kernelvars/bootsplash.sh
@@ -0,0 +1,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
+