|
@ -4,6 +4,11 @@ |
|
|
|
|
|
|
|
|
MOUNTBASE=/mnt |
|
|
MOUNTBASE=/mnt |
|
|
MOUNTPOINT="$MOUNTBASE/$MDEV" |
|
|
MOUNTPOINT="$MOUNTBASE/$MDEV" |
|
|
|
|
|
if [ "$MDEV" = "mmcblk0p3" ]; then |
|
|
|
|
|
MOUNTPOINT="$MOUNTBASE/linuxrootfs1" |
|
|
|
|
|
elif [ "$MDEV" = "mmcblk0p7" ]; then |
|
|
|
|
|
MOUNTPOINT="$MOUNTBASE/userdata" |
|
|
|
|
|
fi |
|
|
ROOTDEV=$(readlink /dev/root) |
|
|
ROOTDEV=$(readlink /dev/root) |
|
|
|
|
|
|
|
|
# do not add or remove root device again... |
|
|
# do not add or remove root device again... |
|
@ -28,11 +33,6 @@ case "$ACTION" in |
|
|
LOGINFO "/dev/$MDEV already mounted - not mounting again" |
|
|
LOGINFO "/dev/$MDEV already mounted - not mounting again" |
|
|
exit 0 |
|
|
exit 0 |
|
|
fi |
|
|
fi |
|
|
if [ "$MDEV" = "mmcblk0p3" ]; then |
|
|
|
|
|
MOUNTPOINT="$MOUNTBASE/linuxrootfs1" |
|
|
|
|
|
elif [ "$MDEV" = "mmcblk0p7" ]; then |
|
|
|
|
|
MOUNTPOINT="$MOUNTBASE/userdata" |
|
|
|
|
|
fi |
|
|
|
|
|
LOGINFO "[$ACTION] mounting /dev/$MDEV to $MOUNTPOINT" |
|
|
LOGINFO "[$ACTION] mounting /dev/$MDEV to $MOUNTPOINT" |
|
|
# remove old mountpoint symlinks we might have for this device |
|
|
# remove old mountpoint symlinks we might have for this device |
|
|
rm -f $MOUNTPOINT |
|
|
rm -f $MOUNTPOINT |
|
|