VirtualBox

Changeset 24487 in vbox for trunk/src/VBox/Additions/linux


Ignore:
Timestamp:
Nov 9, 2009 11:01:47 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
54571
Message:

Additions/linux/installer: non-Debian versions of X.Org 1.6 do need configuration file hacking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/installer/vboxadd-x11.sh

    r24477 r24487  
    308308            vboxvideo_src=vboxvideo_drv_16.so
    309309            vboxmouse_src=vboxmouse_drv_16.so
    310             dox11config=0
     310            dox11config15=1
    311311            ;;
    312312        1.4.99.* | 1.5.* )
     
    385385        echo "this guest."
    386386    fi
    387     # Install selinux policy for Fedora 7 and 8 to allow the X server to open device files
     387    # Install selinux policy for Fedora 7 and 8 to allow the X server to
     388    # open device files
    388389    case "$redhat_release" in
    389390        Fedora\ release\ 7* | Fedora\ release\ 8* )
     
    397398    chcon -t unconfined_execmem_exec_t '/usr/bin/VBoxClient' > /dev/null 2>&1
    398399    semanage fcontext -a -t unconfined_execmem_exec_t '/usr/bin/VBoxClient' > /dev/null 2>&1
     400
     401    # Certain Ubuntu/Debian versions use a special PCI-id file to identify
     402    # video drivers.  Some versions have the directory and don't use it.
     403    # Those versions can autoload vboxvideo though, so we don't need to
     404    # hack the configuration file for them.
     405    test -f /etc/debian_version -a -d /usr/share/xserver-xorg/pci &&
     406    {
     407        test -h -a ! -e "$lib_dir/vboxvideo.ids" &&
     408            rm -f "$lib_dir/vboxvideo.ids"
     409        ln -s "$lib_dir/vboxvideo.ids" /usr/share/xserver-xorg/pci 2>/dev/null
     410        test "$useHalForMouse" -eq 1 && doX11Config=0
     411    }
    399412
    400413    # Do the XF86Config/xorg.conf hack for those versions that require it
     
    442455
    443456    # Certain Ubuntu/Debian versions use a special PCI-id file to identify
    444     # video drivers
    445     if [ -f /etc/debian_version ]
    446     then
    447         if [ -d /usr/share/xserver-xorg/pci ]
    448         then
    449             ln -s "$share_dir/vboxvideo.ids" /usr/share/xserver-xorg/pci 2>/dev/null
    450         fi
    451     fi
    452 
    453     # And X.Org Server versions starting with 1.5 can do mouse auto-detection,
     457    # video drivers.  Some versions have the directory and don't use it.
     458    # Those versions can autoload vboxvideo though, so we don't need to
     459    # hack the configuration file for them.
     460    test -f /etc/debian_version -a -d /usr/share/xserver-xorg/pci &&
     461    {
     462        test -h -a ! -e "$share_dir/vboxvideo.ids" &&
     463            rm -rf "$share_dir/vboxvideo.ids"
     464        ln -s "$share_dir/vboxvideo.ids" /usr/share/xserver-xorg/pci 2>/dev/null
     465        test "$useHalForMouse" -eq 1 && doX11Config=0
     466    }
     467
     468    # X.Org Server versions starting with 1.5 can do mouse auto-detection,
    454469    # to make our lives easier and spare us the nasty hacks.
    455470    if [ $useHalForMouse -eq 1 ]
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