VirtualBox

Ignore:
Timestamp:
May 12, 2010 10:23:05 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
61518
Message:

Additions/x11 and linux/installer: install the xorg.conf.d rule to load vboxmouse by default on X.Org Server 1.8 (based on r60935 from 3.1 and r61290 from 3.0)

Location:
trunk/src/VBox/Additions/linux/installer
Files:
1 added
1 edited

Legend:

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

    r28800 r29406  
    284284    # By default, we want to run our xorg.conf setup script
    285285    setupxorgconf="true"
     286    # But not to install the configuration file into xorg.conf.d
     287    doxorgconfd=""
    286288    # But without the workaround for SUSE 11.1 not doing input auto-detection
    287289    newmouse=""
    288290    # By default we want to use hal/udev/whatever for auto-loading the mouse driver
    289291    automouse="--autoMouse"
    290     # But we only install the udev rule if we detect a server that needs it
    291     udevmouse=""
    292292    # We need to tell our xorg.conf hacking script whether /dev/psaux exists
    293293    nopsaux="--nopsaux"
     
    322322            vboxvideo_src=vboxvideo_drv_18.so
    323323            vboxmouse_src=vboxmouse_drv_18.so
     324            doxorgconfd="true"
    324325            setupxorgconf=""
    325326            ;;
     
    329330            vboxmouse_src=vboxmouse_drv_17.so
    330331            setupxorgconf=""
    331             test "$system" = "debian" && udevmouse="true"
     332            test "$system" = "debian" && doxorgconfd="true"
    332333            ;;
    333334        1.5.99.* | 1.6.* )
     
    460461                rm -r /var/cache/hald/fdi-cache 2> /dev/null
    461462            fi
    462         test -n "$udevmouse" &&
    463             if [ -d /etc/udev/rules.d ]
     463        if test -n "$doxorgconfd"
     464        then
     465            if test -d /etc/udev/rules.d
    464466            then
    465                 echo "KERNEL==\"vboxguest\",ENV{ID_INPUT}=\"1\"" > /etc/udev/rules.d/70-xorg-vboxmouse.rules
    466                 echo "KERNEL==\"vboxguest\",ENV{ID_INPUT_MOUSE}=\"1\"" >> /etc/udev/rules.d/70-xorg-vboxmouse.rules
    467                 echo "KERNEL==\"vboxguest\",ENV{x11_driver}=\"vboxmouse\"" >> /etc/udev/rules.d/70-xorg-vboxmouse.rules
     467                install -o 0 -g 0 -m 0644 "$share_dir/70-xorg-vboxmouse.rules" /etc/udev/rules.d
    468468                # This is normally silent.  I have purposely not redirected
    469469                # error output as I want to know if something goes wrong,
     
    471471                udevadm trigger --action=change
    472472            fi
     473            test -d /usr/share/X11/xorg.conf.d &&
     474                install -o 0 -g 0 -m 0644 "$share_dir/50-vboxmouse.conf" /usr/share/X11/xorg.conf.d
     475            test -d /usr/lib/X11/xorg.conf.d &&
     476                install -o 0 -g 0 -m 0644 "$share_dir/50-vboxmouse.conf" /usr/lib/X11/xorg.conf.d
     477        fi
    473478        succ_msg
    474479        test -n "$generated" &&
     
    602607    rm /etc/udev/rules.d/70-xorg-vboxmouse.rules 2>/dev/null
    603608    udevadm trigger --action=change 2>/dev/null
     609    rm /usr/lib/X11/xorg.conf.d/50-vboxmouse.conf 2>/dev/null
     610    rm /usr/share/X11/xorg.conf.d/50-vboxmouse.conf 2>/dev/null
    604611    rm /usr/share/xserver-xorg/pci/vboxvideo.ids 2>/dev/null
    605612}
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