VirtualBox

Changeset 39122 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 26, 2011 2:16:05 PM (13 years ago)
Author:
vboxsync
Message:

Additions/linux/installer: install the DRI driver correctly on Ubuntu 11.10.

File:
1 edited

Legend:

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

    r38860 r39122  
    510510    chcon -t unconfined_execmem_exec_t '/usr/bin/VBoxClient' > /dev/null 2>&1
    511511    semanage fcontext -a -t unconfined_execmem_exec_t '/usr/bin/VBoxClient' > /dev/null 2>&1
    512     # Install the guest OpenGL drivers
    513     if [ -d /usr/lib64/dri ]
    514     then
    515         rm -f /usr/lib64/dri/vboxvideo_dri.so
    516         ln -s $LIB/VBoxOGL.so /usr/lib64/dri/vboxvideo_dri.so
    517     elif [ -d /usr/lib/dri ]
    518     then
    519         rm -f /usr/lib/dri/vboxvideo_dri.so
    520         ln -s $LIB/VBoxOGL.so /usr/lib/dri/vboxvideo_dri.so
    521     fi
    522     if [ -d /usr/lib64/xorg/modules/dri ]
    523     then
    524         rm -f /usr/lib64/xorg/modules/dri/vboxvideo_dri.so
    525         ln -s $LIB/VBoxOGL.so /usr/lib64/xorg/modules/dri/vboxvideo_dri.so
    526     elif [ -d /usr/lib/xorg/modules/dri ]
    527     then
    528         rm -f /usr/lib/xorg/modules/dri/vboxvideo_dri.so
    529         ln -s $LIB/VBoxOGL.so /usr/lib/xorg/modules/dri/vboxvideo_dri.so
    530     fi
     512    # Install the guest OpenGL drivers.  For now we don't support
     513    # multi-architecture installations
     514    for dir in /usr/lib/dri /usr/lib32/dri /usr/lib64/dri \
     515        /usr/lib/xorg/modules/dri /usr/lib32/xorg/modules/dri \
     516        /usr/lib64/xorg/modules/dri /usr/lib/i386-linux-gnu/dri \
     517        /usr/lib/x86_64-linux-gnu/dri; do
     518        if [ -d $dir ]; then
     519            rm -f "$dir/vboxvideo_dri.so"
     520            ln -s "$LIB/VBoxOGL.so" "$dir/vboxvideo_dri.so"
     521        fi
     522    done
    531523
    532524    # And set up VBoxClient to start when the X session does
Note: See TracChangeset for help on using the changeset viewer.

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