summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunmin Lee <sunm.lee@samsung.com>2016-09-09 19:25:49 +0900
committerSunmin Lee <sunm.lee@samsung.com>2016-09-12 10:38:41 +0900
commit5b16ede556ecd138a4e6cd6159b2ebcd6c28e182 (patch)
tree08111c385053d1efafdf0b617ef238bbddb87452
parentbb5740c8c13dae81a8aad936ebc0284f24476124 (diff)
downloadsystem-plugin-5b16ede556ecd138a4e6cd6159b2ebcd6c28e182.tar.gz
system-plugin-5b16ede556ecd138a4e6cd6159b2ebcd6c28e182.tar.bz2
system-plugin-5b16ede556ecd138a4e6cd6159b2ebcd6c28e182.zip
Upgrade: Post operation of filesystem
The post operation of upgrade removes redundant directories in Tizen 3.0. Change-Id: I80e9e2b6b12a95dfa36844be7e0c084d714f3815 Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
-rwxr-xr-xupgrade/update-post.sh10
-rwxr-xr-xupgrade/update.sh2
2 files changed, 12 insertions, 0 deletions
diff --git a/upgrade/update-post.sh b/upgrade/update-post.sh
new file mode 100755
index 0000000..696e2d6
--- /dev/null
+++ b/upgrade/update-post.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+#
+# RW update post script
+# (especially for filesystem operation)
+#
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+
+rm -rf /opt/usr/live
+rm -rf /opt/driver
+rm -rf /opt/storage
diff --git a/upgrade/update.sh b/upgrade/update.sh
index 1aeb2e9..a4d3534 100755
--- a/upgrade/update.sh
+++ b/upgrade/update.sh
@@ -23,6 +23,8 @@ else
${RUN} ${PATCH_DIR}/${PATCH}
done
+ ${RUN} /usr/share/upgrade/update-post.sh
+
echo "SUCCESS: Upgrade successfully finished" > ${RESULT_FILE}
fi