diff options
author | Carsten Haitzler (Rasterman <raster@rasterman.com> | 2009-04-17 15:44:58 +1000 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2009-04-17 15:48:45 +1000 |
commit | 212e36417ae27e1be11147168b6f5cdfd1c5eda9 (patch) | |
tree | 00892cc3bca94534140f1e44ab98b4e58587410c /recipes/e17/exquisite | |
parent | d92391844e4454ba9ea3af5b4273721496511ebb (diff) |
angstrom, exquisite, psplash, opkg, angsrtom-images, sysvinit: abstract splash
this abstracts psplash to be generic. now as long as something provides a
splashfuncs file that sysvinit (and other scripts) can source, and all the
approproate init hooks to start the splash etc. you can use psplash,
exquisitie, usplash or anything that tickles your fancy. this moves splash
toa ${SPLASH} variable to include in your image (or override). the default in
angstrom is psplash - unless you override it. opkg also runs a configure
script that cna take forever - and so this speically sends off some splash
commands (if there) to let you know the systme is alive and working (but just
busy).
this is one commit as if this breaks things you either want to fix the minor
break or totally revert the whole patch. i hope it didn't break anything.
Diffstat (limited to 'recipes/e17/exquisite')
-rw-r--r-- | recipes/e17/exquisite/exquisite-init | 10 | ||||
-rw-r--r-- | recipes/e17/exquisite/splashfuncs | 29 |
2 files changed, 34 insertions, 5 deletions
diff --git a/recipes/e17/exquisite/exquisite-init b/recipes/e17/exquisite/exquisite-init index 1750184842..2de6774ffb 100644 --- a/recipes/e17/exquisite/exquisite-init +++ b/recipes/e17/exquisite/exquisite-init @@ -28,13 +28,13 @@ case `machine_id` in esac args=$args" $FPS $THEME" -export EXDIR=/mnt/.exquisite +export EXDIR=/mnt/.splash export EXQUISITE_IPC=$EXDIR/exquisite mount tmpfs -t tmpfs $EXDIR -o,size=40k exquisite -fb -fs $args & -exquisite-write -wait 40 +exquisite-write -wait 120 exquisite-write "PULSATE" - -# kill off exquisite in 300 seconds if its not gone yet -(sleep 300; exquisite-write "QUIT")& +setterm -blank 0 +setterm -powersave off +setterm -powerdown 0 diff --git a/recipes/e17/exquisite/splashfuncs b/recipes/e17/exquisite/splashfuncs new file mode 100644 index 0000000000..ada2a96dd4 --- /dev/null +++ b/recipes/e17/exquisite/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" +} |