Apply permissions to /dev/vhost-net without the need to restart the machine
[sdk/emulator/qemu.git] / package / emulator-qemu-x86.install.linux
index 8e1db4f..8043a03 100755 (executable)
@@ -32,6 +32,8 @@ 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 "/etc/init.d/tizen-vhost-net start" >> $TMP_FILE
 echo "if [ ! -d /etc/sudoers.d ];then" >> $TMP_FILE
 echo "mkdir /etc/sudoers.d" >> $TMP_FILE
 echo "fi" >> $TMP_FILE