Changeset 22033 in vbox for trunk/src/VBox/Installer
- Timestamp:
- Aug 6, 2009 12:26:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/solaris/vboxconfig.sh
r22030 r22033 33 33 BIN_IFCONFIG=/sbin/ifconfig 34 34 35 DIR_VBOXBASE=/opt/VirtualBox 36 35 37 # "vboxdrv" is also used in sed lines here (change those as well if it ever changes) 36 38 MOD_VBOXDRV=vboxdrv … … 397 399 } 398 400 401 # install_python_bindings(pythonbin) 402 # remarks: changes pwd 403 # failure: non fatal 404 install_python_bindings() 405 { 406 PYTHONBIN=$1 407 if test -x "$PYTHONBIN"; then 408 VBOX_INSTALL_PATH="$DIR_VBOXBASE" 409 export VBOX_INSTALL_PATH 410 cd $DIR_VBOXBASE/sdk/installer 411 $PYTHONBIN ./vboxapisetup.py install > /dev/null 412 return 0 413 fi 414 return 1 415 } 416 399 417 400 418 # post_install() … … 402 420 post_install() 403 421 { 404 # @todo install_drivers, update boot-archive start services, patch_files, update boot archive405 422 infoprint "Loading VirtualBox kernel modules..." 406 423 install_drivers 407 424 408 infoprint "Updating the boot archive..."409 $BIN_BOOTADM update-archive > /dev/null410 411 425 if test "$?" -eq 0; then 412 413 426 if test -f /platform/i86pc/kernel/drv/vboxnet.conf; then 414 427 # nwam/dhcpagent fix … … 429 442 fi 430 443 fi 444 445 # Install python bindings 446 if test -f "$DIR_VBOXBASE/sdk/installer/vboxapisetup.py" || test -h "$DIR_VBOXBASE/sdk/installer/vboxapisetup.py"; then 447 PYTHONBIN=`which python 2> /dev/null` 448 if test -f "$PYTHONBIN" || test -h "$PYTHONBIN"; then 449 infoprint "Installing Python bindings..." 450 451 INSTALLEDIT=1 452 PYTHONBIN=`which python2.4 2>/dev/null` 453 install_python_bindings "$PYTHONBIN" 454 if test "$?" -eq 0; then 455 INSTALLEDIT=0 456 fi 457 PYTHONBIN=`which python2.5 2>/dev/null` 458 install_python_bindings "$PYTHONBIN" 459 if test "$?" -eq 0; then 460 INSTALLEDIT=0 461 fi 462 PYTHONBIN=`which python2.6 2>/dev/null` 463 install_python_bindings "$PYTHONBIN" 464 if test "$?" -eq 0; then 465 INSTALLEDIT=0 466 fi 467 468 # remove files installed by Python build 469 rm -rf $DIR_VBOXBASE/sdk/installer/build 470 471 if test "$INSTALLEDIT" -ne 0; then 472 warnprint "No suitable Python version found. Required Python 2.4, 2.5 or 2.6." 473 fi 474 else 475 warnprint "Python not found, skipped installed Python bindings." 476 fi 477 fi 478 479 # Update boot archive 480 infoprint "Updating the boot archive..." 481 $BIN_BOOTADM update-archive > /dev/null 431 482 432 483 return 0
Note:
See TracChangeset
for help on using the changeset viewer.