package: modify install and remove script. 30/11830/1
authorKitae Kim <kt920.kim@samsung.com>
Wed, 6 Nov 2013 04:00:02 +0000 (13:00 +0900)
committerKitae Kim <kt920.kim@samsung.com>
Wed, 6 Nov 2013 04:00:02 +0000 (13:00 +0900)
If tizen-kvm-multi script for multi users on a linux machine exists,
those scripts will not install tizen-kvm and not ask administrative permission
because the tizen-kvm-multi script already enable kvm driver before.

Change-Id: I41d5da6a783e7be64ad43d5d5ae6085385ebd98b
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
package/emulator-qemu-x86.install.ubuntu-32
package/emulator-qemu-x86.install.ubuntu-64
package/emulator-qemu-x86.remove.ubuntu-32
package/emulator-qemu-x86.remove.ubuntu-64

index 66b5a3b..f952b2c 100755 (executable)
@@ -1,5 +1,12 @@
 #!/bin/bash -ex
 
+TIZEN_KVM_SCRIPT="/etc/init.d/tizen-kvm-multi"
+if [ -f ${TIZEN_KVM_SCRIPT} ]
+then
+       echo "tizen-kvm-multi does exist. tizen-kvm does not need to be installed."
+       exit 0;
+fi
+
 TIZEN_SDK_INSTALL_PATH=`echo ${INSTALLED_PATH}`
 if [ -z ${TIZEN_SDK_INSTALL_PATH} ]
 then
index 66b5a3b..f952b2c 100755 (executable)
@@ -1,5 +1,12 @@
 #!/bin/bash -ex
 
+TIZEN_KVM_SCRIPT="/etc/init.d/tizen-kvm-multi"
+if [ -f ${TIZEN_KVM_SCRIPT} ]
+then
+       echo "tizen-kvm-multi does exist. tizen-kvm does not need to be installed."
+       exit 0;
+fi
+
 TIZEN_SDK_INSTALL_PATH=`echo ${INSTALLED_PATH}`
 if [ -z ${TIZEN_SDK_INSTALL_PATH} ]
 then
index f94faaf..d40b9f1 100755 (executable)
@@ -1,5 +1,12 @@
 #!/bin/bash -ex
 
+TIZEN_KVM_SCRIPT="/etc/init.d/tizen-kvm-multi"
+if [ -f ${TIZEN_KVM_SCRIPT} ]
+then
+       echo "tizen-kvm-multi does exist. tizen-kvm does not need to be uninstalled."
+       exit 0;
+fi
+
 TIZEN_SDK_INSTALL_PATH=`echo ${INSTALLED_PATH}`
 if [ -z ${TIZEN_SDK_INSTALL_PATH} ]
 then
index f94faaf..d40b9f1 100755 (executable)
@@ -1,5 +1,12 @@
 #!/bin/bash -ex
 
+TIZEN_KVM_SCRIPT="/etc/init.d/tizen-kvm-multi"
+if [ -f ${TIZEN_KVM_SCRIPT} ]
+then
+       echo "tizen-kvm-multi does exist. tizen-kvm does not need to be uninstalled."
+       exit 0;
+fi
+
 TIZEN_SDK_INSTALL_PATH=`echo ${INSTALLED_PATH}`
 if [ -z ${TIZEN_SDK_INSTALL_PATH} ]
 then