#!/bin/bash
#
#FM_FileChk ver1.0.0	
#
# usage: 
#	FM_FileChk filename 
#
# Description: 
#	for check the file exsit
#Copyright (C) 2012 NEC Corporation.
#If you tamper with the source, the behavior of the FilterMonitor is not guaranteed.
############################################################################################################

#define param
filename=$1

#check file
FM_FileChk(){
if [ $# -eq 1 ]
then
	if [ -f $filename ]
	then			
		return 1
	else
  		return 0
	fi
else
	return 0
fi

}
###tracelog start!####
FM_FileChk $callfunc $CurrentTraceLogLevel $filename
###tracelog start!####

