Chromium Code Reviews| Index: cloud_print/virtual_driver/posix/mac_packaging/uninstall.sh |
| diff --git a/cloud_print/virtual_driver/posix/mac_packaging/uninstall.sh b/cloud_print/virtual_driver/posix/mac_packaging/uninstall.sh |
| new file mode 100755 |
| index 0000000000000000000000000000000000000000..12f90e20413467db40a5be65c84791a81b1f7de8 |
| --- /dev/null |
| +++ b/cloud_print/virtual_driver/posix/mac_packaging/uninstall.sh |
| @@ -0,0 +1,19 @@ |
| +#!/bin/bash |
|
Mark Mentovai
2011/08/19 23:52:20
Similar comments to the other script apply.
I ass
abeera_chromium.org
2011/08/20 02:37:13
I did not have sufficient time to build a complete
|
| + |
| +# Change working directory to the one in which the script is located. |
| +DIR="$( cd "$( dirname "$0" )" && pwd )" |
| +cd $DIR |
| + |
| +# Uninstall the printer from CUPS |
| +lpadmin -x Google-Cloud-Print-$USER |
| + |
| +# Run the uninstall File to deregister from service process. |
| +./GCP-uninstall |
| + |
| +# Kill CUPS, delete the backend, restart CUPS |
| +launchctl stop org.cups.cupsd |
| +rm /usr/libexec/cups/backend/GCP-driver |
| +launchctl start org.cups.cupsd |
| + |
| +pkgutil --forget com.google.CloudPrint.VirtualDriver |
| +pkgutil --forget com.google.googleCloudPrintVirtualDriver.Scripts.pkg |