Please use ***[code][/code]
*** tags around your code and data, to preserve the original formatting and to improve readability. Do not
use quote tags, bolding, colors, "start/end" lines, or other creative techniques.
It's also always a good idea to get into the habit of quoting your variables, to avoid word-splitting on any whitespace, if such exists.
if grep -qs "$copyFrom" /proc/mounts && grep -qs "$copyTo" /proc/mounts; then
Here's another idea for you, BTW:
case $( grep -c -e "$copyFrom" -e "$copyTo" /proc/mounts ) in
2) pGreen "Remote file servers are up and running." ;;
*) pRed "Remote file servers are down." ;;