summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/Theme/init-hooks/05-have-kernelvars/Theme.sh
diff options
context:
space:
mode:
Diffstat (limited to 'os-plugins/plugins/Theme/init-hooks/05-have-kernelvars/Theme.sh')
-rw-r--r--os-plugins/plugins/Theme/init-hooks/05-have-kernelvars/Theme.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/os-plugins/plugins/Theme/init-hooks/05-have-kernelvars/Theme.sh b/os-plugins/plugins/Theme/init-hooks/05-have-kernelvars/Theme.sh
new file mode 100644
index 00000000..c2d4551a
--- /dev/null
+++ b/os-plugins/plugins/Theme/init-hooks/05-have-kernelvars/Theme.sh
@@ -0,0 +1,10 @@
+# splashy stuff seems to depend on /proc/fb with VESA!?
+# only activate with kernel option quiet
+if grep -E "(VESA|VGA)" /proc/fb > /dev/null 2>&1 \
+ && grep -qi " quiet " /proc/cmdline > /dev/null 2>&1; then
+ export Theme_nosplash=0
+else
+ export Theme_nosplash=1
+fi
+
+[ ${Theme_nosplash} = 0 ] && /bin/splashy boot 2>/dev/null