Changeset 27507 in vbox for trunk/src/VBox/Additions/linux/installer
- Timestamp:
- Mar 18, 2010 10:41:11 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/installer/vboxadd-x11.sh
r27479 r27507 478 478 if [ -d /etc/udev/rules.d ] 479 479 then 480 udev_call="" 481 udev_app=`which udevadm 2> /dev/null` 482 if [ $? -eq 0 ]; then 483 udev_call="${udev_app} version 2> /dev/null" 484 else 485 udev_app=`which udevinfo 2> /dev/null` 486 if [ $? -eq 0 ]; then 487 udev_call="${udev_app} -V 2> /dev/null" 488 fi 489 fi 490 udev_fix="=" 491 if [ "${udev_call}" != "" ]; then 492 udev_out=`${udev_call}` 493 udev_ver=`expr "$udev_out" : '[^0-9]*\([0-9]*\)'` 494 if [ "$udev_ver" = "" -o "$udev_ver" -lt 55 ]; then 495 udev_fix="" 496 fi 497 fi 498 echo "KERNEL=${udev_fix}\"vboxguest\",ENV{ID_INPUT}=\"1\"" > /etc/udev/rules.d/70-xorg-vboxmouse.rules 499 echo "KERNEL=${udev_fix}\"vboxguest\",ENV{ID_INPUT_MOUSE}=\"1\"" >> /etc/udev/rules.d/70-xorg-vboxmouse.rules 500 echo "KERNEL=${udev_fix}\"vboxguest\",ENV{x11_driver}=\"vboxmouse\"" >> /etc/udev/rules.d/70-xorg-vboxmouse.rules 480 echo "KERNEL==\"vboxguest\",ENV{ID_INPUT}=\"1\"" > /etc/udev/rules.d/70-xorg-vboxmouse.rules 481 echo "KERNEL==\"vboxguest\",ENV{ID_INPUT_MOUSE}=\"1\"" >> /etc/udev/rules.d/70-xorg-vboxmouse.rules 482 echo "KERNEL==\"vboxguest\",ENV{x11_driver}=\"vboxmouse\"" >> /etc/udev/rules.d/70-xorg-vboxmouse.rules 483 # This is normally silent. I have purposely not redirected 484 # error output as I want to know if something goes wrong, 485 # particularly if the command syntax ever changes. 486 udevadm trigger --action=change 501 487 fi 502 488 succ_msg … … 630 616 rm /etc/hal/fdi/policy/90-vboxguest.fdi 2>/dev/null 631 617 rm /etc/udev/rules.d/70-xorg-vboxmouse.rules 2>/dev/null 618 udevadm trigger --action=change 2>/dev/null 632 619 rm /usr/share/xserver-xorg/pci/vboxvideo.ids 2>/dev/null 633 620 }
Note:
See TracChangeset
for help on using the changeset viewer.