1 2 3 4 5 6 7 8 9
#!/bin/bash ret=$(mount | grep extern) if [ $ret -ne 0 ] then echo "not mounted" else echo "mounted" fi