#!/bin/sh while [ -n "$1" ]; do case "$1" in -*) shift ;; *) /usr/bin/ntfs-3g.probe --readonly "$1" >/dev/null 2>&1 && echo "ntfs-3g" && exit 0 exit 1 ;; esac done exit 1