VirtualBox

Changeset 44215 in vbox for trunk/src


Ignore:
Timestamp:
Dec 29, 2012 12:45:56 AM (12 years ago)
Author:
vboxsync
Message:

Propagate xtrace from pkgadd -v down the scripts.

Location:
trunk/src/VBox/Installer/solaris
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/solaris/pkginstall.sh

    • Property svn:executable set to *
    r44211 r44215  
    3131fi
    3232
     33# pkgadd -v
     34if test "$1" = "--sh-trace" || test "$2" = "--sh-trace" || test "$3" = "--sh-trace"; then
     35    set -x
     36fi
     37DEBUGOPT=`set -o | sed -ne 's/^xtrace *on$/--sh-trace/p'` # propagate pkgadd -v
     38
    3339# If PKG_INSTALL_ROOT is undefined or NULL, redefine to '/' and carry on.
    34 ${PKG_INSTALL_ROOT:=/}/opt/VirtualBox/vboxconfig.sh --preremove --fatal "$ISIPS"
     40${PKG_INSTALL_ROOT:=/}/opt/VirtualBox/vboxconfig.sh --preremove --fatal ${ISIPS} ${DEBUGOPT}
    3541
    3642if test "$?" -eq 0; then
    3743    echo "Installing new ones..."
    38     $PKG_INSTALL_ROOT/opt/VirtualBox/vboxconfig.sh --postinstall
     44    $PKG_INSTALL_ROOT/opt/VirtualBox/vboxconfig.sh --postinstall ${DEBUGOPT}
    3945    rc=$?
    4046    if test "$rc" -ne 0; then
  • trunk/src/VBox/Installer/solaris/postinstall.sh

    r44211 r44215  
    2020currentzone=`zonename`
    2121if test "$currentzone" = "global"; then
    22     ${PKG_INSTALL_ROOT:=/}/opt/VirtualBox/pkginstall.sh --srv4
     22    DEBUGOPT=`set -o | sed -ne 's/^xtrace *on$/--sh-trace/p'` # propagate pkgadd -v
     23    ${PKG_INSTALL_ROOT:=/}/opt/VirtualBox/pkginstall.sh --srv4 ${DEBUGOPT}
    2324    rc=$?
    2425fi
  • trunk/src/VBox/Installer/solaris/vboxconfig.sh

    • Property svn:executable set to *
    r44212 r44215  
    604604    fi
    605605
    606     # Create the device link for non-remote installs
     606    # Create the device link for non-remote installs (not really relevant any more)
    607607    if test "$REMOTEINST" -eq 0; then
    608608        /usr/sbin/devfsadm -i "$MOD_VBOXDRV"
    609         if test $? -ne 0 || test ! -h "/dev/vboxdrv" || test ! -h "/dev/vboxdrvu" ; then
    610             errorprint "Failed to create device link for $MOD_VBOXDRV."
    611             exit 1
    612         fi
     609        #if test $? -ne 0 || test ! -h "/dev/vboxdrv" || test ! -h "/dev/vboxdrvu" ; then
     610        #    errorprint "Failed to create device link for $MOD_VBOXDRV."
     611        #    exit 1
     612        #fi
    613613    fi
    614614
     
    12221222            DIR_CONF="/usr/kernel/drv"
    12231223            ;;
     1224        --sh-trace) # forwarded pkgadd -v
     1225            set -x
     1226            ;;
    12241227        --help)
    12251228            printusage
     
    12271230            ;;
    12281231        *)
    1229             break
     1232            # Take a hard line on invalid options.
     1233            errorprint "Invalid command line option: \"$1\""
     1234            exit 1;
    12301235            ;;
    12311236    esac
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette