summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/theme/init-hooks/05-have-kernelvars/theme.sh
diff options
context:
space:
mode:
authorOliver Tappe2008-01-27 13:37:13 +0100
committerOliver Tappe2008-01-27 13:37:13 +0100
commit224da813f0632c67a7437762fae6871704fc341d (patch)
tree75f038e20fe80c213d886956a19c13926004a6ed /os-plugins/plugins/theme/init-hooks/05-have-kernelvars/theme.sh
parentadjusted following the recent discussion on the devel list: (diff)
downloadcore-224da813f0632c67a7437762fae6871704fc341d.tar.gz
core-224da813f0632c67a7437762fae6871704fc341d.tar.xz
core-224da813f0632c67a7437762fae6871704fc341d.zip
* renamed all plugins to lowercase in order to be consistent with
the attribute names git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1497 95ad53e4-c205-0410-b2fa-d234c58c8868
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.sh11
1 files changed, 11 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..e1f2b31d
--- /dev/null
+++ b/os-plugins/plugins/theme/init-hooks/05-have-kernelvars/theme.sh
@@ -0,0 +1,11 @@
+# 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 ] ; then
+ export theme_nosplash=0
+else
+ export theme_nosplash=1
+fi
+
+[ ${theme_nosplash} -eq 0 ] && /bin/splashy boot 2>/dev/null