echo Installing ktapi.ko
#
rmmod ktapi
rm  /dev/ktapi
#
insmod ktapi.ko
major=$(awk '$2=="ktapi" {print $1}' < /proc/devices)
mknod /dev/ktapi c $major 0
chmod 666 /dev/ktapi
#
echo Installing libktapi.so
cp libktapi.so.0.1  /usr/local/lib
ln -s -f /usr/local/lib/libktapi.so.0.1 /usr/lib64/libktapi.so
echo Compiling and linking test programs
gcc test.c -o test  -lktapi
echo
echo ----------------------------------------------------------------
echo
echo run test
echo
./test

