preremove.sh revision e32fab83316e8fae9d8498539a3510320f610af6
ee29f83d0638dba8e0380d7f594fe2d726d9403cvboxsync# Sun xVM VirtualBox
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync# VirtualBox pre-remove script for Solaris Guest Additions.
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync# Copyright (C) 2008 Sun Microsystems, Inc.
9496b6f77d66eb89f088668752b8838d578d6e10vboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
9496b6f77d66eb89f088668752b8838d578d6e10vboxsync# available from http://www.virtualbox.org. This file is free software;
9496b6f77d66eb89f088668752b8838d578d6e10vboxsync# you can redistribute it and/or modify it under the terms of the GNU
9496b6f77d66eb89f088668752b8838d578d6e10vboxsync# General Public License (GPL) as published by the Free Software
9496b6f77d66eb89f088668752b8838d578d6e10vboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
9496b6f77d66eb89f088668752b8838d578d6e10vboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
9496b6f77d66eb89f088668752b8838d578d6e10vboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync# Clara, CA 95054 USA or visit http://www.sun.com if you need
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync# additional information or have any questions.
d0d8559364df06561788980a7a491598eae64fa2vboxsyncecho "Sun xVM VirtualBox Guest Additions - preremove script"
7bff28e0cedd8656acd24b420759649184d8cf00vboxsyncecho "This script will unload the VirtualBox Guest kernel module..."
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync# stop and unregister VBoxService daemon
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync/usr/sbin/svcadm disable -s svc:/system/virtualbox/vboxservice:default
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync/usr/sbin/svccfg delete svc:/system/virtualbox/vboxservice:default
e32fab83316e8fae9d8498539a3510320f610af6vboxsync# stop VBoxClient
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync# vboxguest.sh would've been installed, we just need to call it.
f902ede7eb073d09a81c1d470c089c7b14921714vboxsync# Try and restore xorg.conf!
f902ede7eb073d09a81c1d470c089c7b14921714vboxsyncecho "Restoring Xorg..."
7bff28e0cedd8656acd24b420759649184d8cf00vboxsyncecho "Done."