diff options
author | John Klug <john.klug@multitech.com> | 2017-07-19 17:21:49 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2017-07-19 17:21:49 -0500 |
commit | 8f323cdaf6fca553d2e01ae4a9be7276ed861c35 (patch) | |
tree | 134880b906bf34702d0fcc4cbae169f7a6fed860 /recipes-core | |
parent | 159f93a5a0ad8dc82baeda9b4601f100e27a5247 (diff) | |
download | meta-mlinux-8f323cdaf6fca553d2e01ae4a9be7276ed861c35.tar.gz meta-mlinux-8f323cdaf6fca553d2e01ae4a9be7276ed861c35.tar.bz2 meta-mlinux-8f323cdaf6fca553d2e01ae4a9be7276ed861c35.zip |
Users in the disk group should be able to write fat/vfat by default
Diffstat (limited to 'recipes-core')
-rw-r--r-- | recipes-core/udev/udev-extraconf/mount.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/recipes-core/udev/udev-extraconf/mount.patch b/recipes-core/udev/udev-extraconf/mount.patch new file mode 100644 index 0000000..5468295 --- /dev/null +++ b/recipes-core/udev/udev-extraconf/mount.patch @@ -0,0 +1,24 @@ +diff -Naru old/mount.sh new/mount.sh +--- old/mount.sh 2017-07-13 14:38:01.497487772 -0500 ++++ new/mount.sh 2017-07-19 17:18:08.749856242 -0500 +@@ -4,7 +4,6 @@ + # + # Attempt to mount any added block devices and umount any removed devices + +- + MOUNT="/bin/mount" + PMOUNT="/usr/bin/pmount" + UMOUNT="/bin/umount" +@@ -66,7 +65,11 @@ + if [ -x "$PMOUNT" ]; then + $PMOUNT $DEVNAME 2> /dev/null + elif [ -x $MOUNT ]; then +- $MOUNT $DEVNAME 2> /dev/null ++ if [[ $ID_FS_TYPE =~ fat ]] ; then ++ $MOUNT -o umask=002,gid=disk $DEVNAME 2> /dev/null ++ else ++ $MOUNT $DEVNAME 2> /dev/null ++ fi + fi + + # If the device isn't mounted at this point, it isn't |