Add upgrade script 45/89045/1
authorSunmin Lee <sunm.lee@samsung.com>
Thu, 22 Sep 2016 01:18:34 +0000 (10:18 +0900)
committerSunmin Lee <sunm.lee@samsung.com>
Thu, 22 Sep 2016 01:24:26 +0000 (10:24 +0900)
The upgrade script for Tizen 2.4 to 3.0 upgrade is added.
It sets the homescreen-efl to vconfkey of menuscreen.

Change-Id: I100bd9e4431d26a6ea077c6d67fdbbaa66bf7e63
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
packaging/starter.spec
starter.upgrade.sh [new file with mode: 0755]

index e40ecef..8d29a84 100644 (file)
@@ -153,6 +153,9 @@ cp -f LICENSE %{buildroot}/usr/share/license/%{name}
 
 %find_lang %{name}
 
+# Upgrade script install
+install starter.upgrade.sh -D %{buildroot}%{_datadir}/upgrade/scripts/starter.upgrade.sh
+
 %post
 sync
 
@@ -169,3 +172,5 @@ sync
 %{__usrdir}/basic.target.wants/starter.service
 %endif
 /usr/share/license/%{name}
+# Upgrade script
+%{_datadir}/upgrade/scripts/starter.upgrade.sh
diff --git a/starter.upgrade.sh b/starter.upgrade.sh
new file mode 100755 (executable)
index 0000000..e05242f
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+#
+# RW update: starter
+#
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+
+# Set the default homescreen
+vconftool set -t string db/setting/menuscreen/package_name org.tizen.homescreen-efl