diff options
author | Matthias Hentges <oe@hentges.net> | 2006-06-26 07:33:54 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-06-26 07:33:54 +0000 |
commit | eb88158c010181c4096ce768ef00dc64f02c1884 (patch) | |
tree | 085d54e668cbf9a7258f7cf914a30fafd8a0e8a0 /packages/visual-boot/files/visual-boot.init | |
parent | d64d969197bc1f0a69b112555d663e8d91d86013 (diff) |
visual-boot: Add visual-boot from .oz
Diffstat (limited to 'packages/visual-boot/files/visual-boot.init')
-rw-r--r-- | packages/visual-boot/files/visual-boot.init | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/packages/visual-boot/files/visual-boot.init b/packages/visual-boot/files/visual-boot.init new file mode 100644 index 0000000000..ff3fedba73 --- /dev/null +++ b/packages/visual-boot/files/visual-boot.init @@ -0,0 +1,25 @@ +#! /bin/sh +# +# Copyright Matthias Hentges <devel@hentges.net> (c) 2006 +# License: GPL (see http://www.gnu.org/licenses/gpl.txt for a copy of the license) +# +# Filename: visual-boot.init +# Date: 25-Jun-06 + + +SRC_FILE="`basename $0 | sed "s/S[0-9][0-9]//"`" + +# echo "# # # [`readlink /proc/self/fd/0`] # # #" +# echo "# # # [`readlink /proc/self/fd/1`] # # #" +# echo "# # # [`readlink /proc/self/fd/2`] # # #" +# echo "# # # [`sh -c /usr/bin/tty`] # # #" +# +# readlink /proc/self/fd/1 | grep -q "tty1" && exit 0 + +chvt 2 +if test -e /usr/share/visual-boot/${SRC_FILE}.raw.gz +then + zcat /usr/share/visual-boot/${SRC_FILE}.raw.gz > /dev/fb0 +else + echo "[/usr/share/visual-boot/$SRC_FILE] not found" > /dev/tty1 +fi |