#!/bin/bash
# the input argu is your module name
# example1 : sh load sdmmc.o
# example2 : sd load msmspro.o
# cheng tsair-jinn <jinncheng@skymedo.com.tw>
#############################################################################
module_file=$1
#############################################################################
#
#
if test -f $module_file
then
	echo "file exist"
else
	echo "file not exist"
	exit 1
fi
#############################################################################
# install module 
#
result=`/sbin/insmod ./$module_file`
if $result
then
	echo "insmod "${module_file}" ok"
else
	echo "insmod "${module_file}" fail"
	exit 0
fi
exit 1
