VirtualBox

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

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

more branding fixes

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 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${BASEDIR}/opt/VirtualBox/vboxconfig.sh --preremove --fatal "$ISIPS"
33
34if test "$?" -eq 0; then
35 echo "Installing new ones..."
36 ${BASEDIR}/opt/VirtualBox/vboxconfig.sh --postinstall
37 rc=$?
38 if test "$rc" -ne 0; then
39 echo "Completed but with errors."
40 rc=1
41 else
42 if test "$1" != "--srv4"; then
43 echo "Post installation completed successfully!"
44 fi
45 fi
46else
47 echo "## ERROR!! Failed to remove older/partially installed bits."
48 rc=1
49fi
50
51exit "$rc"
52
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