preremove.sh revision 9a1578b66f9e563cf99c75ffa881db476f477e3a
3ad43088582dd7ddb73b3036dd44be743fe132degryzor#!/bin/sh
3ad43088582dd7ddb73b3036dd44be743fe132degryzor# innotek VirtualBox
3ad43088582dd7ddb73b3036dd44be743fe132degryzor# VirtualBox pre-remove script for Solaris Guest Additions.
3ad43088582dd7ddb73b3036dd44be743fe132degryzor#
3ad43088582dd7ddb73b3036dd44be743fe132degryzor# Copyright (C) 2008 innotek GmbH
3ad43088582dd7ddb73b3036dd44be743fe132degryzor#
3ad43088582dd7ddb73b3036dd44be743fe132degryzor# This file is part of VirtualBox Open Source Edition (OSE), as
3ad43088582dd7ddb73b3036dd44be743fe132degryzor# available from http://www.virtualbox.org. This file is free software;
3ad43088582dd7ddb73b3036dd44be743fe132degryzor# you can redistribute it and/or modify it under the terms of the GNU
3ad43088582dd7ddb73b3036dd44be743fe132degryzor# General Public License (GPL) as published by the Free Software
3ad43088582dd7ddb73b3036dd44be743fe132degryzor# Foundation, in version 2 as it comes in the "COPYING" file of the
3ad43088582dd7ddb73b3036dd44be743fe132degryzor# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
3ad43088582dd7ddb73b3036dd44be743fe132degryzor# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
3ad43088582dd7ddb73b3036dd44be743fe132degryzor#
3ad43088582dd7ddb73b3036dd44be743fe132degryzor
3ad43088582dd7ddb73b3036dd44be743fe132degryzorecho "innotek VirtualBox Guest Additions - preremove script"
3ad43088582dd7ddb73b3036dd44be743fe132degryzorecho "This script will unload the VirtualBox Guest kernel module..."
3ad43088582dd7ddb73b3036dd44be743fe132degryzor
3ad43088582dd7ddb73b3036dd44be743fe132degryzor# stop and unregister VBoxService daemon
3ad43088582dd7ddb73b3036dd44be743fe132degryzor/usr/sbin/svcadm disable -s svc:/system/virtualbox/vboxservice:default
3ad43088582dd7ddb73b3036dd44be743fe132degryzor/usr/sbin/svccfg delete svc:/system/virtualbox/vboxservice:default
3ad43088582dd7ddb73b3036dd44be743fe132degryzor
3ad43088582dd7ddb73b3036dd44be743fe132degryzor# vboxguest.sh would've been installed, we just need to call it.
3ad43088582dd7ddb73b3036dd44be743fe132degryzor/opt/VirtualBoxAdditions/vboxguest.sh stop
3ad43088582dd7ddb73b3036dd44be743fe132degryzor
3ad43088582dd7ddb73b3036dd44be743fe132degryzorecho "Done."
3ad43088582dd7ddb73b3036dd44be743fe132degryzor
3ad43088582dd7ddb73b3036dd44be743fe132degryzor