psplash: add animation and last message from systemd
[AGL/meta-agl.git] / meta-agl / recipes-core / psplash / files / psplash-anim
diff --git a/meta-agl/recipes-core/psplash/files/psplash-anim b/meta-agl/recipes-core/psplash/files/psplash-anim
new file mode 100755 (executable)
index 0000000..ac9bf67
--- /dev/null
@@ -0,0 +1,11 @@
+#/bin/bash
+
+psplash-default "$@" &
+sleep .2
+while :; do
+       for x in 0 1 2 3 4 5 6 7 8 9 10 -9 -8 -7 -6 -5 -4 -3 -2 -1 0 -1 -2 -3 -4 -5 -6 -7 -8 -9 10 9 8 7 6 5 4 3 2 1; do
+               psplash-write "PROGRESS ${x}0" || exit 0
+               psplash-write "MSG $(journalctl -n1 -ocat)" || exit 0
+               sleep .1
+       done
+done