From 37e15a354e928e964e0ecfb324be62ae5e0d8229 Mon Sep 17 00:00:00 2001 From: Aditya Aswani Date: Wed, 6 Jul 2022 15:30:14 +0530 Subject: [PATCH] Fixed manual update of permissions for /dev/vhost-net for robot emulators Change-Id: I466731f44f82b2da74a41a514d800855273f04fa Signed-off-by: Aditya Aswani --- package/emulator-qemu-x86.install.linux | 1 + package/emulator-qemu-x86.remove.linux | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package/emulator-qemu-x86.install.linux b/package/emulator-qemu-x86.install.linux index 8e1db4f..4f65f3c 100755 --- a/package/emulator-qemu-x86.install.linux +++ b/package/emulator-qemu-x86.install.linux @@ -32,6 +32,7 @@ echo "TIZEN_SDK_INSTALL_PATH=$TIZEN_SDK_INSTALL_PATH" >> ${TMP_FILE} echo "cp \"${TIZEN_SDK_INSTALL_PATH}/platforms/${PLATFORM_VERSION}/common/emulator/etc/tizen-vhost-net\" /etc/init.d/" >> ${TMP_FILE} echo "cp \"${TIZEN_SDK_INSTALL_PATH}/platforms/${PLATFORM_VERSION}/common/emulator/etc/45-tizen-vhost-net.rules\" /lib/udev/rules.d/" >> ${TMP_FILE} echo "cp \"${TIZEN_PLATFORM_ETC_PATH}/emulator-ifup.sh\" /etc" >> $TMP_FILE +echo "update-rc.d tizen-vhost-net defaults" >> $TMP_FILE echo "if [ ! -d /etc/sudoers.d ];then" >> $TMP_FILE echo "mkdir /etc/sudoers.d" >> $TMP_FILE echo "fi" >> $TMP_FILE diff --git a/package/emulator-qemu-x86.remove.linux b/package/emulator-qemu-x86.remove.linux index 1b3afc2..5abc14f 100755 --- a/package/emulator-qemu-x86.remove.linux +++ b/package/emulator-qemu-x86.remove.linux @@ -26,7 +26,7 @@ TMP_FILE=remove_tizen-init.sh echo "#!/bin/bash -ex" >> ${TMP_FILE} echo "rm -f /etc/init.d/tizen-vhost-net" >> ${TMP_FILE} echo "rm -f /lib/udev/rules.d/45-tizen-vhost-net.rules" >> ${TMP_FILE} - +echo "update-rc.d tizen-vhost-net remove" >> ${TMP_FILE} chmod +x ${TMP_FILE} if [ "${TSUDO}" != "" ] # since installer v2.27 -- 2.7.4