#!/bin/sh
module="ifc_uio"
config_file="config_file"
# check the input argument, which is the configuration file to be loaded with the driver
if [ -f "$1" ]; then
	config_file=$1
fi

modprobe uio
# invoke insmod with the information extracted from the configuration file
/sbin/insmod ./$module.ko `awk '$1!~/^#/' $config_file | tr -d " " | tr -d "\t" | tr "\n" " "` || exit 1

