[Title] Modify install/remove script name
authorsyeon.hwang <syeon.hwang@samsung.com>
Tue, 28 Aug 2012 07:44:01 +0000 (16:44 +0900)
committersyeon.hwang <syeon.hwang@samsung.com>
Fri, 31 Aug 2012 05:06:58 +0000 (14:06 +0900)
[Type]
[Module]
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

package/emulator.install.ubuntu-32 [new file with mode: 0755]
package/emulator.install.ubuntu-64 [new file with mode: 0755]
package/emulator.remove.ubuntu-32 [moved from package/emulator.remove.linux with 71% similarity]
package/emulator.remove.ubuntu-64 [moved from package/emulator.install.linux with 60% similarity]

diff --git a/package/emulator.install.ubuntu-32 b/package/emulator.install.ubuntu-32
new file mode 100755 (executable)
index 0000000..a6bca4e
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+TIZEN_SDK_INSTALL_PATH=`echo $INSTALLED_PATH`
+if [ -z $TIZEN_SDK_INSTALL_PATH ]
+then
+#   echo "There is no TIZEN_SDK_PATH ENV" >> /tmp/emulator.log
+   exit 2;
+fi
+
+gksudo cp ${TIZEN_SDK_INSTALL_PATH}/tools/emulator/etc/tizen_kvm /etc/init.d/
+gksudo update-rc.d tizen-kvm defaults
+
diff --git a/package/emulator.install.ubuntu-64 b/package/emulator.install.ubuntu-64
new file mode 100755 (executable)
index 0000000..a6bca4e
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+TIZEN_SDK_INSTALL_PATH=`echo $INSTALLED_PATH`
+if [ -z $TIZEN_SDK_INSTALL_PATH ]
+then
+#   echo "There is no TIZEN_SDK_PATH ENV" >> /tmp/emulator.log
+   exit 2;
+fi
+
+gksudo cp ${TIZEN_SDK_INSTALL_PATH}/tools/emulator/etc/tizen_kvm /etc/init.d/
+gksudo update-rc.d tizen-kvm defaults
+
similarity index 71%
rename from package/emulator.remove.linux
rename to package/emulator.remove.ubuntu-32
index 1a3ebe2..67d2bd7 100755 (executable)
@@ -7,6 +7,6 @@ then
    exit 2;
 fi
 
-sudo update-rc.d tizen-kvm remove
-sudo rm -f /etc/init.d/tizen_kvm
+gksudo update-rc.d tizen-kvm remove
+gksudo rm -f /etc/init.d/tizen_kvm
 
similarity index 60%
rename from package/emulator.install.linux
rename to package/emulator.remove.ubuntu-64
index a065c73..67d2bd7 100755 (executable)
@@ -7,6 +7,6 @@ then
    exit 2;
 fi
 
-sudo cp ${TIZEN_SDK_INSTALL_PATH}/tools/emulator/etc/tizen_kvm /etc/init.d/
-sudo update-rc.d tizen-kvm defaults
+gksudo update-rc.d tizen-kvm remove
+gksudo rm -f /etc/init.d/tizen_kvm