#!/bin/bash
#
# Install Script for the  USB Smartcard reader series.
#
#

echo
echo Installing USB Smartcard reader series...
echo

#check whether the current user is root
if test $(id -ur) != 0; then
	echo
	echo "You should logon as root user!"
	echo 
	exit -1
fi

#
# check if module for this Kernel version exists
#
echo 
echo Installing ePass2000 driver
echo

if [ -f Makefile ]; then
 make clean;make;make install
 if [ $? != 0 ]; then
  echo Could not copy driver-module, exiting
  exit -1
 fi
fi

echo
echo Installation finished
