From ae1a9706895d8449d1228296bda24b5c67f9188b Mon Sep 17 00:00:00 2001 From: Kitae Kim Date: Wed, 6 Nov 2013 13:00:02 +0900 Subject: [PATCH] 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 --- package/emulator-qemu-x86.install.ubuntu-32 | 7 +++++++ package/emulator-qemu-x86.install.ubuntu-64 | 7 +++++++ package/emulator-qemu-x86.remove.ubuntu-32 | 7 +++++++ package/emulator-qemu-x86.remove.ubuntu-64 | 7 +++++++ 4 files changed, 28 insertions(+) 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 -- 2.7.4