VirtualBox

Changeset 54180 in vbox for trunk


Ignore:
Timestamp:
Feb 12, 2015 3:18:53 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
98234
Message:

Additions/x11: don't try to start VBoxClient in Linux guests if the kernel module is not loaded to hide 5-6 annoying notifications

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/Installer/98vboxadd-xclient

    r52109 r54180  
    2222done
    2323
    24 # This script can also be triggered by a connection over SSH, which is not what
    25 # we had in mind, so we do not start VBoxClient in that case.  We do not use
    26 # "exit" here as this script is "source"d, not executed.
    27 if test -z "${SSH_CONNECTION}"; then
     24if test -f /proc/modules && ! grep -q vboxguest /proc/modules 2>/dev/null; then
     25   # Do not start if the kernel module is not present.
     26   notify-send "VBoxClient: the VirtualBox kernel service is not running.  Exiting."
     27elif test -z "${SSH_CONNECTION}"; then
     28   # This script can also be triggered by a connection over SSH, which is not
     29   # what we had in mind, so we do not start VBoxClient in that case.  We do
     30   # not use "exit" here as this script is "source"d, not executed.
    2831  /usr/bin/VBoxClient --clipboard
    2932  /usr/bin/VBoxClient --checkhostversion
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette