#!/bin/bash

FOLDER="/mnt/"

PrintMessage(){
  MSG="$*"
  echo ""${MSG}""
}

RunningCommand(){
  CMD="$*"
  ERR_MSG=$(${CMD} 2>&1)
  EXIT_CODE="$?"

  if [ ${EXIT_CODE} = 0 ]
  then
    echo "0"
  else
    echo "${ERR_MSG}"
  fi

}


if [ -d ${FOLDER} ]
then
  CMD=$(ls -1 ${FOLDER} 2>/dev/null | egrep -wv '^.|^..')
  if [ $? = 0 ] ; then
    echo "0"
  else
    echo "1"
  fi
else
  PrintMessage "0"
  exit 1;
fi
