Changeset 26386 in vbox
- Timestamp:
- Feb 9, 2010 3:29:44 PM (15 years ago)
- Location:
- trunk/src/VBox/Additions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/installer/vboxadd-x11.sh
r25422 r26386 74 74 elif [ -f /etc/redhat-release ]; then 75 75 system=redhat 76 elif [ -f /etc/debian_version ]; then 77 system=debian 76 78 elif [ -f /etc/SuSE-release ]; then 77 79 system=suse … … 163 165 fi 164 166 165 if [ "$system" = " other" ]; then167 if [ "$system" = "debian" -o "$system" = "other" ]; then 166 168 fail_msg() { 167 169 echo " ...fail!" … … 288 290 # But without the workaround for SUSE 11.1 not doing input auto-detection 289 291 newmouse="" 290 # By default we want to use hal for auto-loading the mouse driver 291 usehal="--useHal" 292 # By default we want to use hal/udev/whatever for auto-loading the mouse driver 293 automouse="--autoMouse" 294 # But we only install the udev rule if we detect a server that needs it 295 udevmouse="" 292 296 # We need to tell our xorg.conf hacking script whether /dev/psaux exists 293 297 nopsaux="--nopsaux" … … 325 329 vboxmouse_src=vboxmouse_drv_17.so 326 330 setupxorgconf="" 331 test "$system" = "debian" && udevmouse="true" 327 332 ;; 328 333 1.5.99.* | 1.6.* ) … … 349 354 vboxmouse_src=vboxmouse_drv_15.so 350 355 # SUSE with X.Org 1.5 is a special case, and is handled specially 351 test -r /etc/SuSE-release&&352 { usehal=""; newmouse="--newMouse"; }356 test "$system" = "suse" && 357 { automouse=""; newmouse="--newMouse"; } 353 358 ;; 354 359 1.4.* ) … … 356 361 vboxvideo_src=vboxvideo_drv_14.so 357 362 vboxmouse_src=vboxmouse_drv_14.so 358 usehal=""363 automouse="" 359 364 newmouse="--newMouse" 360 365 ;; … … 365 370 vboxvideo_src=vboxvideo_drv_13.so 366 371 vboxmouse_src=vboxmouse_drv_13.so 367 usehal=""372 automouse="" 368 373 newmouse="--newMouse" 369 374 ;; … … 372 377 vboxvideo_src=vboxvideo_drv_71.so 373 378 vboxmouse_src=vboxmouse_drv_71.so 374 usehal=""379 automouse="" 375 380 testrandr="" 376 381 ;; … … 379 384 vboxvideo_src=vboxvideo_drv_70.so 380 385 vboxmouse_src=vboxmouse_drv_70.so 381 usehal=""386 automouse="" 382 387 testrandr="" 383 388 ;; … … 389 394 ln -s "$lib_dir/vboxvideo_drv.o" "$modules_dir/drivers/vboxvideo_drv.o" 390 395 ln -s "$lib_dir/vboxmouse_drv.o" "$modules_dir/input/vboxmouse_drv.o" 391 usehal=""396 automouse="" 392 397 testrandr="" 393 398 succ_msg … … 425 430 # Those versions can autoload vboxvideo though, so we don't need to 426 431 # hack the configuration file for them. 427 test -f /etc/debian_version-a -d /usr/share/xserver-xorg/pci &&432 test "$system" = "debian" -a -d /usr/share/xserver-xorg/pci && 428 433 { 429 434 rm -f "/usr/share/xserver-xorg/pci/vboxvideo.ids" 430 435 ln -s "$share_dir/vboxvideo.ids" /usr/share/xserver-xorg/pci 2>/dev/null 431 test -n "$ usehal" && setupxorgconf=""436 test -n "$automouse" && setupxorgconf="" 432 437 } 433 438 … … 441 446 generated="$generated `printf "$i\n"`" 442 447 else 443 "$lib_dir/x11config-new.pl" $newmouse $ usehal$nopsaux "$i"448 "$lib_dir/x11config-new.pl" $newmouse $automouse $nopsaux "$i" 444 449 fi 445 450 configured="true" … … 455 460 if test -z "$configured" -a ! -r "$nobak"; then 456 461 touch "$main_cfg" 457 "$lib_dir/x11config-new.pl" -- useHal--noBak "$main_cfg"462 "$lib_dir/x11config-new.pl" --autoMouse --noBak "$main_cfg" 458 463 touch "$nobak" 459 464 fi … … 461 466 # X.Org Server versions starting with 1.5 can do mouse auto-detection, 462 467 # to make our lives easier and spare us the nasty hacks. 463 test -n "$ usehal" &&468 test -n "$automouse" && 464 469 if [ -d /etc/hal/fdi/policy ] 465 470 then -
trunk/src/VBox/Additions/x11/Installer/x11config-new.pl
r25455 r26386 20 20 # 21 21 22 my $ use_hal= 0;22 my $auto_mouse = 0; 23 23 my $new_mouse = 0; 24 24 my $no_bak = 0; … … 27 27 foreach $arg (@ARGV) 28 28 { 29 if (lc($arg) eq "-- usehal")30 { 31 $ use_hal= 1;29 if (lc($arg) eq "--autoMouse") 30 { 31 $auto_mouse = 1; 32 32 } 33 33 elsif (lc($arg) eq "--newmouse") … … 111 111 } 112 112 113 if (!$ use_hal&& !$new_mouse) {113 if (!$auto_mouse && !$new_mouse) { 114 114 print TMP <<EOF; 115 115 … … 137 137 } 138 138 139 if (!$ use_hal&& $new_mouse) {139 if (!$auto_mouse && $new_mouse) { 140 140 print TMP <<EOF; 141 141
Note:
See TracChangeset
for help on using the changeset viewer.