Changeset 22123 in vbox for trunk/src/VBox/Installer
- Timestamp:
- Aug 10, 2009 9:55:47 AM (15 years ago)
- Location:
- trunk/src/VBox/Installer/solaris
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/solaris/postinstall.sh
r22083 r22123 25 25 if test "$currentisa" = "i86xpv"; then 26 26 echo "## VirtualBox cannot run under xVM Dom0! Fatal Error, Aborting installation!" 27 exit 227 exit 1 28 28 fi 29 29 30 osversion=`uname -r`31 30 currentzone=`zonename` 32 31 if test "$currentzone" = "global"; then -
trunk/src/VBox/Installer/solaris/vboxconfig.sh
r22120 r22123 173 173 { 174 174 cputype=`isainfo -k` 175 if test "$cputype" != "amd64" ||test "$cputype" != "i386"; then175 if test "$cputype" != "amd64" && test "$cputype" != "i386"; then 176 176 errorprint "VirtualBox works only on i386/amd64 hosts, not $cputype" 177 177 exit 1 … … 293 293 $BIN_MODUNLOAD -i $modid 294 294 if test $? -eq 0; then 295 subprint "Unloaded: 295 subprint "Unloaded: $moddesc module" 296 296 else 297 subprint "Unloading: 297 subprint "Unloading: $moddesc ...FAILED!" 298 298 if test "$fatal" = "$FATALOP"; then 299 299 exit 1 … … 320 320 $BIN_MODLOAD -p $modname 321 321 if test $? -eq 0; then 322 subprint "Loaded: 322 subprint "Loaded: $moddesc module" 323 323 return 0 324 324 else 325 subprint "Loading: 325 subprint "Loading: $modesc ...FAILED!" 326 326 if test "$fatal" = "$FATALOP"; then 327 327 exit 1 … … 444 444 install_python_bindings() 445 445 { 446 PYTHONBIN=$1 447 if test -x "$PYTHONBIN"; then 446 if test -z "$1" || test -z "$2"; then 447 errorprint "missing argument to install_python_bindings" 448 exit 1 449 fi 450 451 pythonbin=$1 452 pythondesc=$2 453 if test -x "$pythonbin"; then 448 454 VBOX_INSTALL_PATH="$DIR_VBOXBASE" 449 455 export VBOX_INSTALL_PATH 450 456 cd $DIR_VBOXBASE/sdk/installer 451 $PYTHONBIN ./vboxapisetup.py install > /dev/null 457 $pythonbin ./vboxapisetup.py install > /dev/null 458 if test "$?" -eq 0; then 459 subprint "Installed: Bindings for $pythondesc" 460 fi 452 461 return 0 453 462 fi … … 468 477 $BIN_SVCCFG delete svc:/application/virtualbox/webservice:default 469 478 if test "$?" -eq 0; then 470 subprint "Unloaded: 479 subprint "Unloaded: Web service" 471 480 else 472 subprint "Unloading: 481 subprint "Unloading: Web service ...ERROR(S)." 473 482 fi 474 483 fi … … 480 489 $BIN_SVCCFG delete svc:/application/virtualbox/zoneaccess 481 490 if test "$?" -eq 0; then 482 subprint "Unloaded: 491 subprint "Unloaded: Zone access service" 483 492 else 484 subprint "Unloading: 493 subprint "Unloading: Zone access service ...ERROR(S)." 485 494 fi 486 495 fi … … 537 546 /usr/sbin/svcadm disable -s svc:/application/virtualbox/webservice:default 538 547 if test "$?" -eq 0; then 539 subprint "Loaded: 548 subprint "Loaded: Web service" 540 549 else 541 subprint "Loading: 550 subprint "Loading: Web service ...ERROR(S)." 542 551 fi 543 552 fi … … 548 557 /usr/sbin/svcadm enable -s svc:/application/virtualbox/zoneaccess 549 558 if test "$?" -eq 0; then 550 subprint "Loaded: 559 subprint "Loaded: Zone access service" 551 560 else 552 subprint "Loading: 561 subprint "Loading: Zone access service ...ERROR(S)." 553 562 fi 554 563 fi … … 562 571 INSTALLEDIT=1 563 572 PYTHONBIN=`which python2.4 2>/dev/null` 564 install_python_bindings "$PYTHONBIN" 573 install_python_bindings "$PYTHONBIN" "Python 2.4" 565 574 if test "$?" -eq 0; then 566 575 INSTALLEDIT=0 567 576 fi 568 577 PYTHONBIN=`which python2.5 2>/dev/null` 569 install_python_bindings "$PYTHONBIN" 578 install_python_bindings "$PYTHONBIN" "Python 2.5" 570 579 if test "$?" -eq 0; then 571 580 INSTALLEDIT=0 572 581 fi 573 582 PYTHONBIN=`which python2.6 2>/dev/null` 574 install_python_bindings "$PYTHONBIN" 583 install_python_bindings "$PYTHONBIN" "Python 2.6" 575 584 if test "$?" -eq 0; then 576 585 INSTALLEDIT=0
Note:
See TracChangeset
for help on using the changeset viewer.