Author: trasz
Date: Thu May  4 19:16:36 2017
New Revision: 317803
URL: https://svnweb.freebsd.org/changeset/base/317803

Log:
  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+free...@gmail.com
  MFC after:    2 weeks

Modified:
  head/etc/autofs/special_media

Modified: head/etc/autofs/special_media
==============================================================================
--- head/etc/autofs/special_media       Thu May  4 19:07:37 2017        
(r317802)
+++ head/etc/autofs/special_media       Thu May  4 19:16:36 2017        
(r317803)
@@ -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}" 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to