VirtualBox

source: vbox/trunk/src/VBox/Additions/solaris/Installer/preremove.sh@ 63100

Last change on this file since 63100 was 59018, checked in by vboxsync, 9 years ago

bugref:8153: vboxvideo: ABI issues / software rendering on Linux guest: try using the built-in Solaris OpenGL selection mechanism to put our OpenGL pass-through library in place. We rely on Mesa support being installed. At system start time, when asked to identify ourselves, we check whether pass-through is currently enabled, and if so claim support for the console type as reported by the constype command. To install ourselves, we first run Mesa selection then replace the user library component. On Additions removal we simply re-run Solaris OpenGL automatic selection to restore the system state.

  • Property svn:eol-style set to LF
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1#!/bin/sh
2# $Id: preremove.sh 59018 2015-12-07 12:10:10Z vboxsync $
3## @file
4# VirtualBox preremove script for Solaris Guest Additions.
5#
6
7#
8# Copyright (C) 2008-2013 Oracle Corporation
9#
10# This file is part of VirtualBox Open Source Edition (OSE), as
11# available from http://www.virtualbox.org. This file is free software;
12# you can redistribute it and/or modify it under the terms of the GNU
13# General Public License (GPL) as published by the Free Software
14# Foundation, in version 2 as it comes in the "COPYING" file of the
15# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
16# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
17#
18# The contents of this file may alternatively be used under the terms
19# of the Common Development and Distribution License Version 1.0
20# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
21# VirtualBox OSE distribution, in which case the provisions of the
22# CDDL are applicable instead of those of the GPL.
23#
24# You may elect to license modified versions of this file under the
25# terms and conditions of either the GPL or the CDDL or both.
26#
27
28LC_ALL=C
29export LC_ALL
30
31LANG=C
32export LANG
33
34echo "Removing VirtualBox service..."
35
36# stop and unregister VBoxService
37/usr/sbin/svcadm disable -s virtualbox/vboxservice
38# Don't need to delete, taken care of by the manifest action
39# /usr/sbin/svccfg delete svc:/application/virtualbox/vboxservice:default
40/usr/sbin/svcadm restart svc:/system/manifest-import:default
41
42# stop VBoxClient
43pkill -INT VBoxClient
44
45echo "Removing VirtualBox kernel modules..."
46
47# vboxguest.sh would've been installed, we just need to call it.
48/opt/VirtualBoxAdditions/vboxguest.sh stopall silentunload
49
50# remove devlink.tab entry for vboxguest
51sed -e '
52/name=vboxguest/d' /etc/devlink.tab > /etc/devlink.vbox
53mv -f /etc/devlink.vbox /etc/devlink.tab
54
55# remove the link
56if test -h "/dev/vboxguest" || test -f "/dev/vboxguest"; then
57 rm -f /dev/vboxdrv
58fi
59if test -h "/dev/vboxms" || test -f "/dev/vboxms"; then
60 rm -f /dev/vboxms
61fi
62
63# Try and restore xorg.conf!
64echo "Restoring X.Org..."
65/opt/VirtualBoxAdditions/x11restore.pl
66
67# Revert set-up of our OpenGL library.
68rm -f /lib/opengl/ogl_select/vbox_vendor_select
69/lib/svc/method/ogl-select start
70
71
72echo "Done."
73
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