#!/bin/bash
#
result=$(systemd-detect-virt)
if [ $result = "none" ];
  then
  # systemctl disable vboxservice.service
  rm /etc/xdg/autostart/vboxclient.desktop
  pacman -Rsn virtualbox-guest-utils virtualbox-guest-dkms --noconfirm
  systemctl disable vbox-check.service
fi
