#!/bin/bash

# From https://gist.github.com/krzys-h/6ec7c7ca1c381c3a5546b1dd51bd68ca
 
/usr/bin/plymouth display-message --text="systemd"

journalctl -f -n0 --system -t systemd -o cat | while read -r line; do
	/usr/bin/plymouth display-message --text="$(echo "$line" | cut -c -50)"
 	if [ $? -ne 0 ]; then
 		break
 	fi
done
