VirtualBox

Changeset 46897 in vbox for trunk/src


Ignore:
Timestamp:
Jul 2, 2013 10:48:14 AM (11 years ago)
Author:
vboxsync
Message:

OS X installer: clean up pkgutil database after VBox uninstall.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/darwin/DiskImage/VirtualBox_Uninstall.tool

    r43238 r46897  
    209209done
    210210if test "$my_rc" -eq 0; then
    211     echo "Successfully uninstalled VirtualBox."
     211    echo "Successfully unloaded VirtualBox kernel extensions."
    212212else
    213     echo "Failed to unload on or more KEXTs, please reboot the machine to complete the uninstall."
    214 fi
     213    echo "Failed to unload one or more KEXTs, please reboot the machine to complete the uninstall."
     214    exit 1;
     215fi
     216
     217# Cleaning up pkgutil database
     218pkgs=`/usr/sbin/pkgutil --pkgs | grep org.virtualbox.pkg`
     219for pkg in $pkgs; do
     220    /usr/bin/sudo /usr/sbin/pkgutil --forget "$pkg"
     221done
     222
    215223echo "Done."
    216224exit 0;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette