summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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