Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Unified Diff: cloud_print/virtual_driver/posix/mac_packaging/uninstall.sh

Issue 7599018: Code to package Cloud Print Linux and Mac virtual drivers. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Moved build scripts to seperate CL to facilitate try server usage Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..1f5583fbf220a2bffa6208c6806c51f54b75e76b
--- /dev/null
+++ b/cloud_print/virtual_driver/posix/mac_packaging/uninstall.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+## 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
+killall cupsd
Scott Byer 2011/08/17 20:51:36 Use launchctl here as well.
abeera 2011/08/18 16:36:25 Done.
+rm /usr/libexec/cups/backend/GCP-driver
+cupsd
Scott Byer 2011/08/17 20:51:36 and here too
abeera 2011/08/18 16:36:25 Done.
+
+pkgutil --forget com.google.CloudPrint.VirtualDriver
+pkgutil --forget com.google.googleCloudPrintVirtualDriver.Scripts.pkg

Powered by Google App Engine
This is Rietveld 408576698