# # Since we are going to unzip a compiled module for the running kernel, # we need to know which kernel version is being executed. So we read # it from /proc/version... KVERS_MAJOR=`cut -f 3 -d " " /proc/version | cut -f 1 -d "."` KVERS_MINOR=`cut -f 3 -d " " /proc/version | cut -f 2 -d "."` if test $KVERS_MAJOR -eq 2 -a $KVERS_MINOR -eq 2; then echo "Found Linux Kernel version 2.2 running"; # We must untar the cifv1003.tgz file tar -xzf cifv1003.tgz rm -f include ln -s ./cifv1003/inc include (cd include; ln -s cifuser.h cif_user.h) rm -f -r lib mkdir lib (cd cifv1003/test; make cifAPI.o) (cd lib; ln -s ../cifv1003/test/cifAPI.o cif_api.o) fi if test $KVERS_MAJOR -eq 2 -a $KVERS_MINOR -eq 4; then echo "Found Linux Kernel version 2.4 running"; # We must untar the cifv2000.tgz file tar -xzf cifv2000.tgz rm -f include ln -s ./cif-V2.000/usr-inc include rm -f -r lib mkdir lib ln -s ../cif-V2.000/api/cif_api.o lib/cif_api.o fi