VirtualBox

Ignore:
Timestamp:
Dec 3, 2009 6:09:54 PM (15 years ago)
Author:
vboxsync
Message:

Additions/linux/installer: more xorg.conf hacking fixes - some old guests do not like /dev/input/mice

File:
1 edited

Legend:

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

    r25100 r25174  
    290290    # By default we want to use hal for auto-loading the mouse driver
    291291    usehal="--useHal"
     292    # We need to tell our xorg.conf hacking script whether /dev/psaux exists
     293    nopsaux="--nopsaux"
     294    test -c /dev/psaux && nopsaux=""
    292295    # And on newer servers, we want to test whether dynamic resizing will work
    293296    testrandr="true"
     
    373376            # Assume X.Org post-fork or XFree86
    374377            begin "Installing XFree86 4.2/4.3 and X.Org 6.7/6.8 modules"
     378            rm "$modules_dir/drivers/vboxvideo_drv.o" 2>/dev/null
     379            rm "$modules_dir/input/vboxmouse_drv.o" 2>/dev/null
    375380            ln -s "$lib_dir/vboxvideo_drv.o" "$modules_dir/drivers/vboxvideo_drv.o"
    376381            ln -s "$lib_dir/vboxmouse_drv.o" "$modules_dir/input/vboxmouse_drv.o"
     
    427432                        generated="$generated  `printf "$i\n"`"
    428433                    else
    429                         "$lib_dir/x11config-new.pl" $newmouse $usehal "$i"
     434                        "$lib_dir/x11config-new.pl" $newmouse $usehal $nopsaux "$i"
    430435                    fi
    431436                    configured="true"
     
    535540        for i in $x11conf_files; do
    536541            if test -r "$i.vbox"; then
    537                 if test "$i" -ot "$i.vbox" -o -n "$legacy"; then
     542                if test ! "$i" -nt "$i.vbox" -o -n "$legacy"; then
    538543                    mv -f "$i.vbox" "$i"
    539544                    grep -q -E 'vboxvideo|vboxmouse' "$i" &&
     
    562567will continue to work after it is restarted.
    563568
    564 $newer
     569$failed
    565570
    566571EOF
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