Changeset 32640 in vbox for trunk/src/VBox/Installer/solaris
- Timestamp:
- Sep 20, 2010 1:10:08 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/solaris/vboxconfig.sh
r32583 r32640 24 24 HOST_OS_MINORVERSION=`uname -v | grep 'snv' | sed -e "s/snv_//" -e "s/[^0-9]//"` 25 25 26 DIR_VBOXBASE= ${BASEDIR}/opt/VirtualBox27 DIR_CONF="$ {BASEDIR}/platform/i86pc/kernel/drv"28 DIR_MOD_32="$ {BASEDIR}/platform/i86pc/kernel/drv"29 DIR_MOD_64= $DIR_MOD_32/amd6426 DIR_VBOXBASE="$PKG_INSTALL_ROOT/opt/VirtualBox" 27 DIR_CONF="$PKG_INSTALL_ROOT/platform/i86pc/kernel/drv" 28 DIR_MOD_32="$PKG_INSTALL_ROOT/platform/i86pc/kernel/drv" 29 DIR_MOD_64="$DIR_MOD_32/amd64" 30 30 31 31 # Default paths, these will be overridden by 'which' if they don't exist … … 220 220 { 221 221 if test "$REMOTEINST" -eq 1 || test -z "$HOST_OS_MINORVERSION" || test -z "$HOST_OS_MAJORVERSION"; then 222 if test -f "$ {BASEDIR}/etc/release"; then223 HOST_OS_MAJORVERSION=`cat $ {BASEDIR}/etc/release | grep "Solaris 10"`222 if test -f "$PKG_INSTALL_ROOT/etc/release"; then 223 HOST_OS_MAJORVERSION=`cat $PKG_INSTALL_ROOT/etc/release | grep "Solaris 10"` 224 224 if test -n "$HOST_OS_MAJORVERSION"; then 225 225 HOST_OS_MAJORVERSION="5.10" 226 226 else 227 HOST_OS_MAJORVERSION=`cat $ {BASEDIR}/etc/release | grep "snv_"`227 HOST_OS_MAJORVERSION=`cat $PKG_INSTALL_ROOT/etc/release | grep "snv_"` 228 228 if test -n "$HOST_OS_MAJORVERSION"; then 229 229 HOST_OS_MAJORVERSION="5.11" … … 231 231 fi 232 232 if test "$HOST_OS_MAJORVERSION" != "5.10"; then 233 HOST_OS_MINORVERSION=`cat $ {BASEDIR}/etc/release | tr ' ' '\n' | grep 'snv_' | sed -e "s/snv_//" -e "s/[^0-9]//"`233 HOST_OS_MINORVERSION=`cat $PKG_INSTALL_ROOT/etc/release | tr ' ' '\n' | grep 'snv_' | sed -e "s/snv_//" -e "s/[^0-9]//"` 234 234 else 235 235 HOST_OS_MINORVERSION="" … … 285 285 286 286 # Add a space at end of module name to make sure we have a perfect match to avoid 287 # any substring matches: e.g "vboxusb" & "vbo $BASEDIR_OPTxusbmon"288 loadentry=`cat $ {BASEDIR}/etc/name_to_major | grep "$1 "`287 # any substring matches: e.g "vboxusb" & "vboxusbmon" 288 loadentry=`cat $PKG_INSTALL_ROOT/etc/name_to_major | grep "$1 "` 289 289 if test -z "$loadentry"; then 290 290 return 1 … … 467 467 468 468 # Add vboxdrv to devlink.tab 469 if test -f "$ {BASEDIR}/etc/devlink.tab"; then470 sed -e '/name=vboxdrv/d' $ {BASEDIR}/etc/devlink.tab > ${BASEDIR}/etc/devlink.vbox471 echo "type=ddi_pseudo;name=vboxdrv \D" >> $ {BASEDIR}/etc/devlink.vbox472 mv -f $ {BASEDIR}/etc/devlink.vbox ${BASEDIR}/etc/devlink.tab469 if test -f "$PKG_INSTALL_ROOT/etc/devlink.tab"; then 470 sed -e '/name=vboxdrv/d' $PKG_INSTALL_ROOT/etc/devlink.tab > $PKG_INSTALL_ROOT/etc/devlink.vbox 471 echo "type=ddi_pseudo;name=vboxdrv \D" >> $PKG_INSTALL_ROOT/etc/devlink.vbox 472 mv -f $PKG_INSTALL_ROOT/etc/devlink.vbox $PKG_INSTALL_ROOT/etc/devlink.tab 473 473 else 474 errorprint "Missing $ {BASEDIR}/etc/devlink.tab, aborting install"474 errorprint "Missing $PKG_INSTALL_ROOT/etc/devlink.tab, aborting install" 475 475 return 1 476 476 fi … … 505 505 506 506 # Add vboxusbmon to devlink.tab 507 sed -e '/name=vboxusbmon/d' $ {BASEDIR}/etc/devlink.tab > ${BASEDIR}/etc/devlink.vbox508 echo "type=ddi_pseudo;name=vboxusbmon \D" >> $ {BASEDIR}/etc/devlink.vbox509 mv -f $ {BASEDIR}/etc/devlink.vbox ${BASEDIR}/etc/devlink.tab507 sed -e '/name=vboxusbmon/d' $PKG_INSTALL_ROOT/etc/devlink.tab > $PKG_INSTALL_ROOT/etc/devlink.vbox 508 echo "type=ddi_pseudo;name=vboxusbmon \D" >> $PKG_INSTALL_ROOT/etc/devlink.vbox 509 mv -f $PKG_INSTALL_ROOT/etc/devlink.vbox $PKG_INSTALL_ROOT/etc/devlink.tab 510 510 511 511 # Create the device link for non-remote installs … … 545 545 546 546 # Remove vboxdrv from devlink.tab 547 if test -f $ {BASEDIR}/etc/devlink.tab; then548 devlinkfound=`cat $ {BASEDIR}/etc/devlink.tab | grep vboxdrv`547 if test -f $PKG_INSTALL_ROOT/etc/devlink.tab; then 548 devlinkfound=`cat $PKG_INSTALL_ROOT/etc/devlink.tab | grep vboxdrv` 549 549 if test -n "$devlinkfound"; then 550 sed -e '/name=vboxdrv/d' $ {BASEDIR}/etc/devlink.tab > ${BASEDIR}/etc/devlink.vbox551 mv -f $ {BASEDIR}/etc/devlink.vbox ${BASEDIR}/etc/devlink.tab550 sed -e '/name=vboxdrv/d' $PKG_INSTALL_ROOT/etc/devlink.tab > $PKG_INSTALL_ROOT/etc/devlink.vbox 551 mv -f $PKG_INSTALL_ROOT/etc/devlink.vbox $PKG_INSTALL_ROOT/etc/devlink.tab 552 552 fi 553 553 554 554 # Remove vboxusbmon from devlink.tab 555 devlinkfound=`cat $ {BASEDIR}/etc/devlink.tab | grep vboxusbmon`555 devlinkfound=`cat $PKG_INSTALL_ROOT/etc/devlink.tab | grep vboxusbmon` 556 556 if test -n "$devlinkfound"; then 557 sed -e '/name=vboxusbmon/d' $ {BASEDIR}/etc/devlink.tab > ${BASEDIR}/etc/devlink.vbox558 mv -f $ {BASEDIR}/etc/devlink.vbox ${BASEDIR}/etc/devlink.tab557 sed -e '/name=vboxusbmon/d' $PKG_INSTALL_ROOT/etc/devlink.tab > $PKG_INSTALL_ROOT/etc/devlink.vbox 558 mv -f $PKG_INSTALL_ROOT/etc/devlink.vbox $PKG_INSTALL_ROOT/etc/devlink.tab 559 559 fi 560 560 fi … … 579 579 580 580 # remove devlinks 581 if test -h "$ {BASEDIR}/dev/vboxdrv" || test -f "${BASEDIR}/dev/vboxdrv"; then582 rm -f $ {BASEDIR}/dev/vboxdrv583 fi 584 if test -h "$ {BASEDIR}/dev/vboxusbmon" || test -f "${BASEDIR}/dev/vboxusbmon"; then585 rm -f $ {BASEDIR}/dev/vboxusbmon581 if test -h "$PKG_INSTALL_ROOT/dev/vboxdrv" || test -f "$PKG_INSTALL_ROOT/dev/vboxdrv"; then 582 rm -f $PKG_INSTALL_ROOT/dev/vboxdrv 583 fi 584 if test -h "$PKG_INSTALL_ROOT/dev/vboxusbmon" || test -f "$PKG_INSTALL_ROOT/dev/vboxusbmon"; then 585 rm -f $PKG_INSTALL_ROOT/dev/vboxusbmon 586 586 fi 587 587 588 588 # unpatch nwam/dhcpagent fix 589 nwamfile=$ {BASEDIR}/etc/nwam/llp589 nwamfile=$PKG_INSTALL_ROOT/etc/nwam/llp 590 590 nwambackupfile=$nwamfile.vbox 591 591 if test -f "$nwamfile"; then … … 595 595 596 596 # remove netmask configuration 597 nmaskfile=$ {BASEDIR}/etc/netmasks597 nmaskfile=$PKG_INSTALL_ROOT/etc/netmasks 598 598 nmaskbackupfile=$nmaskfile.vbox 599 599 if test -f "$nmaskfile"; then … … 744 744 if test -f "$DIR_CONF/vboxnet.conf"; then 745 745 # nwam/dhcpagent fix 746 nwamfile=$ {BASEDIR}/etc/nwam/llp746 nwamfile=$PKG_INSTALL_ROOT/etc/nwam/llp 747 747 nwambackupfile=$nwamfile.vbox 748 748 if test -f "$nwamfile"; then … … 767 767 768 768 # add the netmask to stay persistent across host reboots 769 nmaskfile=$ {BASEDIR}/etc/netmasks769 nmaskfile=$PKG_INSTALL_ROOT/etc/netmasks 770 770 nmaskbackupfile=$nmaskfile.vbox 771 771 if test -f $nmaskfile; then … … 789 789 fi 790 790 791 if test -f $ {BASEDIR}/var/svc/manifest/application/virtualbox/virtualbox-webservice.xml || test -f ${BASEDIR}/var/svc/manifest/application/virtualbox/virtualbox-zoneaccess.xml; then791 if test -f $PKG_INSTALL_ROOT/var/svc/manifest/application/virtualbox/virtualbox-webservice.xml || test -f $PKG_INSTALL_ROOT/var/svc/manifest/application/virtualbox/virtualbox-zoneaccess.xml; then 792 792 infoprint "Configuring services..." 793 793 if test "$REMOTEINST" -eq 1; then … … 853 853 $BIN_BOOTADM update-archive > /dev/null 854 854 else 855 $BIN_BOOTADM update-archive -R $ {BASEDIR}> /dev/null855 $BIN_BOOTADM update-archive -R $PKG_INSTALL_ROOT > /dev/null 856 856 fi 857 857 … … 888 888 get_sysinfo 889 889 890 if test "x${ BASEDIR:=/}" != "x/"; then891 BASEDIR_OPT="-b $ {BASEDIR}"890 if test "x${PKG_INSTALL_ROOT:=/}" != "x/"; then 891 BASEDIR_OPT="-b $PKG_INSTALL_ROOT" 892 892 REMOTEINST=1 893 893 fi
Note:
See TracChangeset
for help on using the changeset viewer.