summaryrefslogtreecommitdiff
path: root/package/emulator-qemu-x86.remove.ubuntu-64
diff options
context:
space:
mode:
Diffstat (limited to 'package/emulator-qemu-x86.remove.ubuntu-64')
-rwxr-xr-xpackage/emulator-qemu-x86.remove.ubuntu-648
1 files changed, 7 insertions, 1 deletions
diff --git a/package/emulator-qemu-x86.remove.ubuntu-64 b/package/emulator-qemu-x86.remove.ubuntu-64
index 9a5c62498f..05e72fefb1 100755
--- a/package/emulator-qemu-x86.remove.ubuntu-64
+++ b/package/emulator-qemu-x86.remove.ubuntu-64
@@ -7,8 +7,14 @@ then
exit 2;
fi
+if [ -e /etc/os-release ]; then
+ OS_NAME=`cat /etc/os-release | grep ID | head -n 1 | awk -F= '{print $2}'`
+fi
+
TMP_FILE=remove_tizen-kvm.sh
-echo "update-rc.d -f tizen-kvm remove" >> $TMP_FILE
+if [ "ubuntu" = "${OS_NAME}" ] ; then
+ echo "update-rc.d -f tizen-kvm remove" >> $TMP_FILE
+fi
echo "rm -f /etc/init.d/tizen-kvm" >> $TMP_FILE
echo "rm -f /lib/udev/rules.d/45-tizen-kvm.rules" >> $TMP_FILE