Chromium Code Reviews| Index: cloud_print/virtual_driver/posix/mac_packaging/install.sh |
| diff --git a/cloud_print/virtual_driver/posix/mac_packaging/install.sh b/cloud_print/virtual_driver/posix/mac_packaging/install.sh |
| new file mode 100755 |
| index 0000000000000000000000000000000000000000..fb70e32d9b518258ee6bc297852d89585f5e066b |
| --- /dev/null |
| +++ b/cloud_print/virtual_driver/posix/mac_packaging/install.sh |
| @@ -0,0 +1,24 @@ |
| +#!/bin/bash |
| + |
| +## Change working directory to the one in which the script is located. |
| +DIR="$( cd "$( dirname "$0" )" && pwd )" |
| +cd $DIR |
| + |
| +# Change the ownership and permissions, as Package Maker can be buggy |
| +chown root:wheel /usr/libexec/cups/backend/GCP-driver |
| +chmod 0700 /usr/libexec/cups/backend/GCP-driver |
| + |
| +# Restart cups so that it sees the new backend |
| +sudo killall cupsd |
|
Scott Byer
2011/08/17 20:51:36
I think you want to use launchd instead, to make s
abeera
2011/08/18 16:36:25
Done.
|
| +sudo cupsd |
| + |
| +# Install the Cloud Print Driver only for the current user, |
| +# since the Service Process is available only for current user |
| +# Give it a unique name, so that multiple users |
| +# on the same machine can install GCP. |
| +# $USER contains the username of the person that started the install. |
| +lpadmin -p Google-Cloud-Print-$USER -E -P GCP-driver.ppd -D \ |
| +"Google Cloud Print" -u allow:$USER -o printer-is-shared=false -v GCP-driver:/ |
|
Scott Byer
2011/08/17 20:51:36
nit: indent continuation line
abeera
2011/08/18 16:36:25
Done.
|
| + |
| +# Register the driver with Chrome/Chromium using the included ObjC program. |
| +./GCP-install |