#!/bin/sh -e

[ `id -u` -eq 0 ] || exit 0

SourceIfNotEmpty()
{
	local f="$1"
	shift
	[ -s "$f" ] && . "$f" "$@"
}

SourceIfNotEmpty /etc/sysconfig/xinitrc ||:

[ "$XROOTWARN" != no ] || exit 0

xsetroot -solid "#FF8000"

# Uncomment this string when 'xmessage <UTF8 TEXT>' will work properly.
#[ "$LANG" = POSIX -o "$LANGUAGE" = POSIX ] && SourceIfNotEmpty /etc/sysconfig/i18n ||:

exec /etc/X11/xinit/xrootwarn.real
