VirtualBox

source: vbox/trunk/src/VBox/Installer/solaris/pkginstall.sh@ 34895

Last change on this file since 34895 was 32639, checked in by vboxsync, 14 years ago

Solaris/Installer: Remote installation fix. Make package non-relocatable and use PKG_INSTALL_ROOT.

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1#!/bin/sh
2## @file
3#
4# VirtualBox postinstall script for Solaris.
5#
6# If you just installed VirtualBox using IPS/pkg(5), you should run this
7# script once to avoid rebooting the system before using VirtualBox.
8#
9
10#
11# Copyright (C) 2009-2010 Oracle Corporation
12#
13# This file is part of VirtualBox Open Source Edition (OSE), as
14# available from http://www.virtualbox.org. This file is free software;
15# you can redistribute it and/or modify it under the terms of the GNU
16# General Public License (GPL) as published by the Free Software
17# Foundation, in version 2 as it comes in the "COPYING" file of the
18# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
19# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
20#
21
22if test "$1" != "--srv4"; then
23 # IPS package
24 echo "Checking for older & partially installed bits..."
25 ISIPS="--ips"
26else
27 # SRv4 package
28 echo "Checking for older bits..."
29 ISIPS=""
30fi
31
32# If PKG_INSTALL_ROOT is undefined or NULL, redefine to '/' and carry on.
33${PKG_INSTALL_ROOT:=/}/opt/VirtualBox/vboxconfig.sh --preremove --fatal "$ISIPS"
34
35if test "$?" -eq 0; then
36 echo "Installing new ones..."
37 $PKG_INSTALL_ROOT/opt/VirtualBox/vboxconfig.sh --postinstall
38 rc=$?
39 if test "$rc" -ne 0; then
40 echo 1>&2 "## Completed but with errors."
41 rc=1
42 else
43 if test "$1" != "--srv4"; then
44 echo "Post installation completed successfully!"
45 fi
46 fi
47else
48 echo 1>&2 "## ERROR!! Failed to remove older/partially installed bits."
49 rc=1
50fi
51
52exit "$rc"
53
Note: See TracBrowser for help on using the repository browser.

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