
#yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
#insmod the GrandDog's USB driver
#yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
module="grandusb"
device="grandusb"
sed="/bin/sed"
mode="777"
/sbin/insmod -f $module $* 
rm -f /dev/$device
major=`cat /proc/devices | awk "\\$2==\"$device\" {print \\$1}"`
mknod /dev/${device} c ${major} 0
	if [ -e /etc/conf.modules ]; then \
		mconf="/etc/conf.modules"; \
	else \
		mconf="/etc/modules.conf"; \
	fi; \
	inconf=`grep 'alias char-major-$major grandusb' $mconf`; \
        ${sed} -e '/grandusb/d' $mconf >>/etc/temp;\
	rm $mconf;\
        cp /etc/temp $mconf;\
        rm /etc/temp;\
	if [ -z "$inconf" ]; then \
		echo "alias char-major-$major grandusb" >> $mconf; \
	fi;\
chmod $mode /dev/$device

#yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
# end of install GrandDog's USB driver
#yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy

