#!/bin/sh

show_text_mesg()
{
	echo "$1"
}

plymouth_is_running()
{
	if [ -e "/bin/plymouth" ] && /bin/plymouth --ping; then
		return 0
	else
		return 1
	fi	
}

show_message()
{
	if plymouth_is_running; then
		/bin/plymouth message --text="$1"
		show_text_mesg "$1"
	else
		show_text_mesg "$1"
	fi
}

clear_message()
{
	if plymouth_is_running; then
		plymouth message --text=""
	fi
	clear
}

