VirtualBox

Changeset 12858 in vbox for trunk/src/VBox/Installer/solaris


Ignore:
Timestamp:
Oct 1, 2008 11:20:49 AM (16 years ago)
Author:
vboxsync
Message:

Solaris/installer: Fix for missing xpg4/bin/id and bail out installation when vboxdrv setup fails.

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

Legend:

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

    r12827 r12858  
    3333    /opt/VirtualBox/vboxdrv.sh stopall silentunload
    3434    /opt/VirtualBox/vboxdrv.sh start
     35    rc=$?
     36    if test "$rc" -ne 0; then
     37        echo "## Kernel module configuration failed! Aborting installation..."
     38        exit 2
     39    fi
    3540
    3641    if test -f /platform/i86pc/kernel/drv/vboxflt.conf; then
  • trunk/src/VBox/Installer/solaris/vboxdrv.sh

    r12827 r12858  
    9292check_root()
    9393{
    94     if test `/usr/xpg4/bin/id -u` -ne 0; then
     94    idbin=/usr/xpg4/bin/id
     95    if test ! -f "$idbin"; then
     96        found=`which id | grep "no id"`
     97        if test ! -z "$found"; then
     98            abort "Failed to find a suitable user id binary! Aborting"
     99        else
     100            idbin=$found
     101        fi
     102    fi
     103
     104    if test `$idbin -u` -ne 0; then
    95105        abort "This program must be run with administrator privileges.  Aborting"
    96106    fi
     
    213223esac
    214224
    215 exit
    216 
     225exit 0
     226
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