From: Kitae Kim Date: Wed, 6 Nov 2013 04:00:02 +0000 (+0900) Subject: package: modify install and remove script. X-Git-Tag: TizenStudio_2.0_p2.3~483^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F30%2F11830%2F1;p=sdk%2Femulator%2Fqemu.git package: modify install and remove script. 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 --- diff --git a/package/emulator-qemu-x86.install.ubuntu-32 b/package/emulator-qemu-x86.install.ubuntu-32 index 66b5a3b..f952b2c 100755 --- a/package/emulator-qemu-x86.install.ubuntu-32 +++ b/package/emulator-qemu-x86.install.ubuntu-32 @@ -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 diff --git a/package/emulator-qemu-x86.install.ubuntu-64 b/package/emulator-qemu-x86.install.ubuntu-64 index 66b5a3b..f952b2c 100755 --- a/package/emulator-qemu-x86.install.ubuntu-64 +++ b/package/emulator-qemu-x86.install.ubuntu-64 @@ -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 diff --git a/package/emulator-qemu-x86.remove.ubuntu-32 b/package/emulator-qemu-x86.remove.ubuntu-32 index f94faaf..d40b9f1 100755 --- a/package/emulator-qemu-x86.remove.ubuntu-32 +++ b/package/emulator-qemu-x86.remove.ubuntu-32 @@ -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 diff --git a/package/emulator-qemu-x86.remove.ubuntu-64 b/package/emulator-qemu-x86.remove.ubuntu-64 index f94faaf..d40b9f1 100755 --- a/package/emulator-qemu-x86.remove.ubuntu-64 +++ b/package/emulator-qemu-x86.remove.ubuntu-64 @@ -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