diff --git a/modules/sshfs b/modules/sshfs index 8f1f2e5..0468bab 100755 --- a/modules/sshfs +++ b/modules/sshfs @@ -32,7 +32,8 @@ function stop { } function status { - if pgrep sshfs > /dev/null; then echo "1"; else echo "0"; fi + pidof sshfs > /dev/null + if [ $? -eq 0 ]; then echo "1"; else echo "0"; fi } function configure {