summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/bootsplash/init-hooks/05-have-kernelvars/bootsplash.sh
diff options
context:
space:
mode:
authorMichael Janczyk2008-03-11 18:43:03 +0100
committerMichael Janczyk2008-03-11 18:43:03 +0100
commit1f6874db7ad37a3b2948997ab4919e1ec7ea5100 (patch)
treef33c4c72d9c6f53caeec97ec85f7df730a2a4936 /os-plugins/plugins/bootsplash/init-hooks/05-have-kernelvars/bootsplash.sh
parentImplemented suggestion by Sebastian: (diff)
downloadcore-1f6874db7ad37a3b2948997ab4919e1ec7ea5100.tar.gz
core-1f6874db7ad37a3b2948997ab4919e1ec7ea5100.tar.xz
core-1f6874db7ad37a3b2948997ab4919e1ec7ea5100.zip
firts part.
split of theme plugin into bootsplash plugin and displaymanager plugin, both including config files,... and setting theme git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1617 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/bootsplash/init-hooks/05-have-kernelvars/bootsplash.sh')
-rw-r--r--os-plugins/plugins/bootsplash/init-hooks/05-have-kernelvars/bootsplash.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/os-plugins/plugins/bootsplash/init-hooks/05-have-kernelvars/bootsplash.sh b/os-plugins/plugins/bootsplash/init-hooks/05-have-kernelvars/bootsplash.sh
new file mode 100644
index 00000000..392b234e
--- /dev/null
+++ b/os-plugins/plugins/bootsplash/init-hooks/05-have-kernelvars/bootsplash.sh
@@ -0,0 +1,16 @@
+# 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