~ubuntu-branches/ubuntu/vivid/virtualbox/vivid

« back to all changes in this revision

Viewing changes to src/VBox/Additions/solaris/Installer/preremove.sh

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2011-12-29 12:29:25 UTC
  • mfrom: (3.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20111229122925-8ota2o33fuk0bkf8
Tags: 4.1.8-dfsg-1
* New upstream release.
* Move all transitional packages to section oldlibs and priority extra.
* Refresh 16-no-update.patch.
* Drop 36-kernel-3.2.patch, applied upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
# terms and conditions of either the GPL or the CDDL or both.
23
23
#
24
24
 
25
 
echo "VirtualBox Guest Additions - preremove script"
26
 
echo "This script will unload the VirtualBox Guest kernel module..."
 
25
echo "Removing VirtualBox service..."
27
26
 
28
 
# stop and unregister VBoxService daemon
29
 
/usr/sbin/svcadm disable -s svc:/system/virtualbox/vboxservice:default
30
 
/usr/sbin/svccfg delete svc:/system/virtualbox/vboxservice:default
 
27
# stop and unregister VBoxService
 
28
/usr/sbin/svcadm disable -s virtualbox/vboxservice
 
29
# Don't need to delete, taken care of by the manifest action
 
30
# /usr/sbin/svccfg delete svc:/application/virtualbox/vboxservice:default
31
31
 
32
32
# stop VBoxClient
33
33
pkill -INT VBoxClient
34
34
 
 
35
echo "Removing VirtualBox kernel modules..."
 
36
 
35
37
# vboxguest.sh would've been installed, we just need to call it.
36
 
/opt/VirtualBoxAdditions/vboxguest.sh stopall
 
38
/opt/VirtualBoxAdditions/vboxguest.sh stopall silentunload
37
39
 
38
40
# remove devlink.tab entry for vboxguest
39
41
sed -e '