preremove.sh revision 332d68e9666b04a5aa788a586d9f4c6b1f19c700
# Sun VirtualBox
# VirtualBox preremove script for Solaris.
#
# Copyright (C) 2007-2009 Sun Microsystems, Inc.
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# General Public License (GPL) as published by the Free Software
# Foundation, in version 2 as it comes in the "COPYING" file of the
# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
#
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
# Clara, CA 95054 USA or visit http://www.sun.com if you need
# additional information or have any questions.
#
echo "Sun VirtualBox - preremove script"
echo "This script will unload the VirtualBox kernel module..."
if test "$currentzone" = "global"; then
# stop and unregister webservice SMF (if present)
if test ! -z "$webservicefound"; then
fi
# stop and unregister zoneaccess SMF (if present)
if test ! -z "$zoneaccessfound"; then
fi
# vboxdrv.sh would've been installed, we just need to call it.
# remove devlink.tab entry for vboxdrv
sed -e '
# remove devlink.tab entry for vboxusbmon
sed -e '
# remove the devlinks
fi
if test -h "/dev/vboxusbmon" || test -f "/dev/vboxusbmon"; then
fi
fi
echo "Done."