blob: 16e067297c1a8ee41604a1835239263db40d09a9 (
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
25
26
27
28
29
30
31
32
33
34
35
|
diff -Naru old/mount.sh new/mount.sh
--- old/mount.sh 2017-08-16 15:14:20.386456313 -0500
+++ new/mount.sh 2017-08-16 15:21:28.898443627 -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"
@@ -21,6 +20,10 @@
name="`basename "$DEVNAME"`"
! test -d "/run/media/$name" && mkdir -p "/run/media/$name"
+ if [ "$name" = mmcblk0p1 ] ;
+ then
+ ln -sf /run/media/$name /run/media/card
+ fi
# Silent util-linux's version of mounting auto
if [ "x`readlink $MOUNT`" = "x/bin/mount.util-linux" ] ;
then
@@ -66,7 +69,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
|