OLD | NEW |
---|---|
(Empty) | |
1 #!/bin/bash | |
2 | |
3 ## Change working directory to the one in which the script is located. | |
4 DIR="$( cd "$( dirname "$0" )" && pwd )" | |
5 cd $DIR | |
6 | |
7 # Change the ownership and permissions, as Package Maker can be buggy | |
8 chown root:wheel /usr/libexec/cups/backend/GCP-driver | |
9 chmod 0700 /usr/libexec/cups/backend/GCP-driver | |
10 | |
11 # Restart cups so that it sees the new backend | |
12 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.
| |
13 sudo cupsd | |
14 | |
15 # Install the Cloud Print Driver only for the current user, | |
16 # since the Service Process is available only for current user | |
17 # Give it a unique name, so that multiple users | |
18 # on the same machine can install GCP. | |
19 # $USER contains the username of the person that started the install. | |
20 lpadmin -p Google-Cloud-Print-$USER -E -P GCP-driver.ppd -D \ | |
21 "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.
| |
22 | |
23 # Register the driver with Chrome/Chromium using the included ObjC program. | |
24 ./GCP-install | |
OLD | NEW |