diff options
author | Woo Chang Kim <wchang.kim@samsung.com> | 2016-08-25 02:00:32 -0700 |
---|---|---|
committer | wchang kim <wchang.kim@samsung.com> | 2016-08-25 18:32:03 +0900 |
commit | daf33e1ffd2d7f2be4d63e67114729541ab1d260 (patch) | |
tree | f80e4aa418fe169a7dda6adc635182982a77ff9f /scripts/mount-user.sh | |
parent | b63cf7d6105a8866d82d7c8110eaa19fae0044d0 (diff) | |
download | system-plugin-daf33e1ffd2d7f2be4d63e67114729541ab1d260.tar.gz system-plugin-daf33e1ffd2d7f2be4d63e67114729541ab1d260.tar.bz2 system-plugin-daf33e1ffd2d7f2be4d63e67114729541ab1d260.zip |
Revert "Revert "Description : Adding fstab for lazy mount""submit/tizen/20160826.052212submit/tizen/20160826.022147submit/tizen/20160825.094741accepted/tizen/wearable/20160829.040406accepted/tizen/tv/20160829.040342accepted/tizen/mobile/20160829.040330accepted/tizen/ivi/20160829.040424accepted/tizen/common/20160825.152043
This reverts commit b63cf7d6105a8866d82d7c8110eaa19fae0044d0.
Change-Id: I80b98406dbe1408fda9786de3b9103854eab0211
Diffstat (limited to 'scripts/mount-user.sh')
-rw-r--r-- | scripts/mount-user.sh | 13 |
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 |