diff options
Diffstat (limited to 'recipes/psplash/files')
-rw-r--r-- | recipes/psplash/files/psplash-init | 2 | ||||
-rw-r--r-- | recipes/psplash/files/splashfuncs | 29 | ||||
-rw-r--r-- | recipes/psplash/files/zzapsplash-init | 4 |
3 files changed, 32 insertions, 3 deletions
diff --git a/recipes/psplash/files/psplash-init b/recipes/psplash/files/psplash-init index a4fb1dc7d1..0409240232 100644 --- a/recipes/psplash/files/psplash-init +++ b/recipes/psplash/files/psplash-init @@ -15,7 +15,7 @@ case `machine_id` in PARAMS='-a 270' ;; esac -export TMPDIR=/mnt/.psplash +export TMPDIR=/mnt/.splash mount tmpfs -t tmpfs $TMPDIR -o,size=40k /usr/bin/psplash $PARAMS & diff --git a/recipes/psplash/files/splashfuncs b/recipes/psplash/files/splashfuncs new file mode 100644 index 0000000000..ada2a96dd4 --- /dev/null +++ b/recipes/psplash/files/splashfuncs @@ -0,0 +1,29 @@ +status() { + if type splash-write >/dev/null 2>&1; then + (TMPDIR="/mnt/.splash" EXQUISITE_IPC="$TMPDIR/exquisite" splash-write "$1" || true) & + fi +} + +status_position() { + status "PROGRESS $1" +} + +status_title() { + status "TITLE $1" +} + +status_text() { + if test -n "$1"; then + status "MSG $1" + else + status "CLEAR" + fi +} + +status_pulse() { + status "PULSATE" +} + +status_tick() { + status "TICK" +} diff --git a/recipes/psplash/files/zzapsplash-init b/recipes/psplash/files/zzapsplash-init index 5a713e5701..19e18960b6 100644 --- a/recipes/psplash/files/zzapsplash-init +++ b/recipes/psplash/files/zzapsplash-init @@ -1,4 +1,4 @@ #!/bin/sh -TMPDIR=/mnt/.psplash psplash-write "QUIT" || true +TMPDIR=/mnt/.splash psplash-write "QUIT" || true sleep 1 -umount /mnt/.psplash >/dev/null 2>/dev/null +umount /mnt/.splash >/dev/null 2>/dev/null |