summaryrefslogtreecommitdiff
path: root/scripts/mount-user.sh
diff options
context:
space:
mode:
authorWoo Chang Kim <wchang.kim@samsung.com>2016-08-25 02:00:32 -0700
committerwchang kim <wchang.kim@samsung.com>2016-08-25 18:32:03 +0900
commitdaf33e1ffd2d7f2be4d63e67114729541ab1d260 (patch)
treef80e4aa418fe169a7dda6adc635182982a77ff9f /scripts/mount-user.sh
parentb63cf7d6105a8866d82d7c8110eaa19fae0044d0 (diff)
downloadsystem-plugin-daf33e1ffd2d7f2be4d63e67114729541ab1d260.tar.gz
system-plugin-daf33e1ffd2d7f2be4d63e67114729541ab1d260.tar.bz2
system-plugin-daf33e1ffd2d7f2be4d63e67114729541ab1d260.zip
This reverts commit b63cf7d6105a8866d82d7c8110eaa19fae0044d0. Change-Id: I80b98406dbe1408fda9786de3b9103854eab0211
Diffstat (limited to 'scripts/mount-user.sh')
-rw-r--r--scripts/mount-user.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/scripts/mount-user.sh b/scripts/mount-user.sh
index d761431..2210516 100644
--- a/scripts/mount-user.sh
+++ b/scripts/mount-user.sh
@@ -4,7 +4,17 @@ PATH=/bin:/usr/bin:/sbin:/usr/sbin
USER_DISK=`ls /dev/disk/by-partlabel/ | grep -i user`
USER_MNT=/opt/usr
-mount | grep "/opt/usr"
+if [ -f /tmp/.lazy_mount ]
+then
+rm -f /tmp/.lazy_mount
+fi
+
+if [ -f /run/.unlock_mnt ]
+then
+rm -f /run/.unlock_mnt
+fi
+
+mount | grep "$USER_MNT " > /dev/null
if [ $? = "0" ]
then
@@ -12,4 +22,5 @@ touch /run/.unlock_mnt
else
/usr/bin/mount PARTLABEL=$USER_DISK $USER_MNT
touch /run/.unlock_mnt
+chsmack -a "_" $USER_MNT
fi