#!/bin/sh
#
# Startup script that starts up an X session as root on boot up.

# Only do stuff if provision is set in the kernel environment.
if ! kenv | grep -q provision ; then
	exit 0
fi

if [ "$1" = "start" ]; then
	echo -n " X-provision"
	sleep 5
	rm -rf /dev/dri/card0
	PATH=$PATH:/usr/X11R6/bin startx &
	#echo -n " firewall-provision"
	#sh /etc/rc.firewall open >/dev/null 2>&1
fi
