3 MODULE_NAME=swap_driver_new
5 # Check for running module in /proc/modules
6 RUNNING=`sed "/${MODULE_NAME}/ ! d" /proc/modules`
8 if [ "${RUNNING}" = "" ]; then
9 ./bin/insmod.sh ${MODULE_NAME}.ko
11 echo "Error: unable to load ${MODULE_NAME} module!"
15 echo "${MODULE_NAME} module is already running!"