print_usage()
{
   echo "  Usage: fcoe_dbg <module_name> cmd arg1 arg2 ..."
   echo "  E.g  : fcoe_dbg fcoe help "
   echo "  E.g  : fcoe_dbg fcoe showalltrunks "
   echo "                                                                               "
}

if [ "$1" = "--help" ] ; then
   print_usage;
   exit 0
fi

file_name=/proc/fabos/fcoe/0/fcoe_debug

# Check if the debug file is present
if  [[ -e $file_name ]]
then
	# Execute the command in to this file
	echo $* > $file_name
	/bin/cat $file_name
else
	echo "debug file not present"
	exit 0
fi

