summaryrefslogtreecommitdiff
path: root/recipes-core/udev/udev-extraconf/mount.patch
blob: 5468295a2dfe1f240b60728dad8a75b4e0019708 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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