Upgrade: set RW update script number 66/101866/1 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170104.122118 accepted/tizen/3.0.m2/tv/20170104.122620 accepted/tizen/3.0.m2/wearable/20170104.122935 accepted/tizen/3.0/common/20161205.091946 accepted/tizen/3.0/ivi/20161205.000011 accepted/tizen/3.0/mobile/20161204.235905 accepted/tizen/3.0/tv/20161204.235940 accepted/tizen/3.0/wearable/20161204.235949 submit/tizen_3.0.m2/20170104.093749 submit/tizen_3.0/20161202.091046
authorSunmin Lee <sunm.lee@samsung.com>
Fri, 2 Dec 2016 08:54:50 +0000 (17:54 +0900)
committerSunmin Lee <sunm.lee@samsung.com>
Fri, 2 Dec 2016 08:54:50 +0000 (17:54 +0900)
+ revert patch using binary instead of systemctl

Change-Id: I728645cb1a8d15b96dadf68942935b4925e5d454

CMakeLists.txt
packaging/capi-system-info.spec
script/500.system_info_upgrade.sh.in [new file with mode: 0644]
script/system_info_upgrade.sh.in [deleted file]

index 0bb33dcd772a4398bfe7568ac66d8958caa7af36..a3a79c954f84296af0d28928c7fd1f698de01c42 100644 (file)
@@ -85,11 +85,11 @@ ENDIF("${EMULATOR}" STREQUAL "on")
 
 #Upgrade script
 CONFIGURE_FILE(
-    script/system_info_upgrade.sh.in
-    ${CMAKE_CURRENT_SOURCE_DIR}/system_info_upgrade.sh
+    script/500.system_info_upgrade.sh.in
+    ${CMAKE_CURRENT_SOURCE_DIR}/500.system_info_upgrade.sh
     @ONLY
 )
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/system_info_upgrade.sh DESTINATION ${UPGRADE_SCRIPT_PATH})
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/500.system_info_upgrade.sh DESTINATION ${UPGRADE_SCRIPT_PATH})
 
 
 IF(UNIX)
index 6dfb9d956b9f4f3076c56bf6b2586026ddd69025..90e1733b0e861bd205638cbcfe7104ae40f52cde 100644 (file)
@@ -98,7 +98,7 @@ mkdir -p %{buildroot}/%{sysinfo_shared_path}
 %{_unitdir}/sysinit.target.wants/tizenid.service
 
 #upgrade script
-%{upgrade_script_path}/system_info_upgrade.sh
+%{upgrade_script_path}/500.system_info_upgrade.sh
 
 %files devel
 %manifest %{name}.manifest
diff --git a/script/500.system_info_upgrade.sh.in b/script/500.system_info_upgrade.sh.in
new file mode 100644 (file)
index 0000000..90a1abd
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+#--------------------------------------------#
+# system-info patch for upgrade (2.4 -> 3.0) #
+#--------------------------------------------#
+
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+
+mkdir -p @SHARED_PATH@
+chown root:system_share @SHARED_PATH@
+chmod 775 @SHARED_PATH@
+chsmack -a "System::Shared" -t @SHARED_PATH@
+
+systemctl start tizenid.service
diff --git a/script/system_info_upgrade.sh.in b/script/system_info_upgrade.sh.in
deleted file mode 100644 (file)
index 4f17a8c..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-
-#--------------------------------------------#
-# system-info patch for upgrade (2.4 -> 3.0) #
-#--------------------------------------------#
-
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
-
-mkdir -p @SHARED_PATH@
-chown root:system_share @SHARED_PATH@
-chmod 775 @SHARED_PATH@
-chsmack -a "System::Shared" -t @SHARED_PATH@
-
-/usr/bin/tizen_id