echo -e " -------- vinstall start --------"
#check kernal myversion
uname -r > myver
if grep "2.2.5-" myver > mycheck ;  then 
	echo -e " wrong kernal version ,should not install 68audio"
else 
	if ! grep "2.2.5" myver > mycheck ; then
		echo -e " wrong kernal version ,should not install 68audio"
	else 

		cp viaudio.o /lib/modules/2.2.5/sound/viaudio.o 
		cp via401.o /lib/modules/2.2.5/sound/via401.o 
#backup modules.conf
		if [ ! -f /etc/modules.conf.old ] ; then
			cp /etc/modules.conf /etc/modules.conf.old 
			echo -e " backup modules.conf to modules.conf.old"
		else
			echo -e " modules.conf.old already exist"
		fi
		chmod u+x modconf
		./modconf
		if [ -f modules.conf.tmp ] ; then
			cp modules.conf.tmp /etc/modules.conf
			rm modules.conf.tmp
		fi

		insmod soundlow
		insmod sound
		insmod viaudio
		insmod via401
	fi
fi
rm myver
rm mycheck
echo -e " -------- vinstall end --------"
