add shellscript to check mode of cfgfile