VirtualBox

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

Last change on this file since 30131 was 28800, checked in by vboxsync, 15 years ago

Automated rebranding to Oracle copyright/license strings via filemuncher

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