#!/bin/sh
# Copyright (c) 2005 Xilinx, Inc.  All rights reserved. 
# Xilinx, Inc. 
# XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" AS A 
# COURTESY TO YOU.  BY PROVIDING THIS DESIGN, CODE, OR INFORMATION AS 
# ONE POSSIBLE   IMPLEMENTATION OF THIS FEATURE, APPLICATION OR 
# STANDARD, XILINX IS MAKING NO REPRESENTATION THAT THIS IMPLEMENTATION 
# IS FREE FROM ANY CLAIMS OF INFRINGEMENT, AND YOU ARE RESPONSIBLE 
# FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE FOR YOUR IMPLEMENTATION. 
# XILINX EXPRESSLY DISCLAIMS ANY WARRANTY WHATSOEVER WITH RESPECT TO 
# THE ADEQUACY OF THE IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO 
# ANY WARRANTIES OR REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE 
# FROM CLAIMS OF INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY 
# AND FITNESS FOR A PARTICULAR PURPOSE. 
#
# Add entry to usermap if necessary

tp_is_root ()
{
if [ `id -u` = "0" ]
then
	return 1
else
	return 0
fi;
}

echo "--KERNEL_VERSION =" `uname -r`
TP_LIN_VERSION_2_4=`uname -r | grep -c "2.4"`
if [ $TP_LIN_VERSION_2_4 = "1" ]
then
	# check if user has root access
	tp_is_root
	if [ $? = "1" ]
	then
		echo "--Root Access"
		#cd linuxdrivers/windrvr
		#make
		#make install
	else
		echo "--Non-Root Access"
		exit 2
	fi		
	exit 0
fi
exit 3

# End of file.
