diff options
author | trasz <trasz@FreeBSD.org> | 2017-05-18 20:37:47 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2017-05-18 20:37:47 +0000 |
commit | 3454d78e66e168df11f1b0b952f6a48e08a79e5f (patch) | |
tree | 12cbcdbed4692d3ce090bcce5b400cf7516b4fd3 /etc/autofs | |
parent | 6d3b23d73d77206eb441d5801f55157695c6853f (diff) | |
download | FreeBSD-src-3454d78e66e168df11f1b0b952f6a48e08a79e5f.zip FreeBSD-src-3454d78e66e168df11f1b0b952f6a48e08a79e5f.tar.gz |
MFC r317803:
Enable automounting of exFAT media.
With fstyp(8) being updated to detect exfat in base r312003, it seems
like a good time to add support for auto-mounting SDXC cards -- which
use exfat by default.
The user will need to locally compile and install sysutils/fusefs-exfat
for this to succeed; logs a message to that effect when not installed.
PR: 218743
Submitted by: eborisch+FreeBSD@gmail.com
Diffstat (limited to 'etc/autofs')
-rwxr-xr-x | etc/autofs/special_media | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/etc/autofs/special_media b/etc/autofs/special_media index c825d0e..08b75bc 100755 --- a/etc/autofs/special_media +++ b/etc/autofs/special_media @@ -39,6 +39,15 @@ print_map_entry() { _p="$2" case "${_fstype}" in + "exfat") + if [ -f "/usr/local/sbin/mount.exfat" ]; then + echo "-mountprog=/usr/local/sbin/mount.exfat,fstype=${_fstype},nosuid :/dev/${_p}" + else + /usr/bin/logger -p info -t "special_media[$$]" \ + "Cannot mount ${_fstype} formatted device /dev/${_p}: Install sysutils/fusefs-exfat first" + exit 1 + fi + ;; "ntfs") if [ -f "/usr/local/bin/ntfs-3g" ]; then echo "-mountprog=/usr/local/bin/ntfs-3g,fstype=${_fstype},nosuid :/dev/${_p}" |