diff options
author | Michael Janczyk | 2008-03-11 18:43:03 +0100 |
---|---|---|
committer | Michael Janczyk | 2008-03-11 18:43:03 +0100 |
commit | 1f6874db7ad37a3b2948997ab4919e1ec7ea5100 (patch) | |
tree | f33c4c72d9c6f53caeec97ec85f7df730a2a4936 /os-plugins/plugins/bootsplash/init-hooks/05-have-kernelvars/bootsplash.sh | |
parent | Implemented suggestion by Sebastian: (diff) | |
download | core-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.sh | 16 |
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 |