diff options
author | LW-archlinux | 2015-06-09 15:58:30 +0200 |
---|---|---|
committer | LW-archlinux | 2015-06-09 15:58:30 +0200 |
commit | b03f34fb69f40d6676cff19c167e9e89cc6dc710 (patch) | |
tree | 31b27ba1f62fbf8e5e9b35d86d5e752f4b61bc8e /cndrvcups-lb.install | |
download | aur-b03f34fb69f40d6676cff19c167e9e89cc6dc710.tar.gz |
Initial import
Diffstat (limited to 'cndrvcups-lb.install')
-rwxr-xr-x | cndrvcups-lb.install | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/cndrvcups-lb.install b/cndrvcups-lb.install new file mode 100755 index 000000000000..35d553aac495 --- /dev/null +++ b/cndrvcups-lb.install @@ -0,0 +1,41 @@ +post_install(){ + if [ -d /usr/share/ppd ] ; then + cd /usr/share/cups/model + for fn in CN*ZK.ppd ; do \ + ln -sf "/usr/share/cups/model/"$fn /usr/share/ppd/$fn ; + done + fi + chmod 4755 /usr/bin/cnpkmoduleufr2 + cat << EOF + >>> Installation: + >>> 1) Make sure CUPS is running and your printer is turned on and connected to your computer. + >>> eg. + >>> systemctl start cups + >>> + >>> 2) Check the name of the device, udev created for you. + >>> eg. /dev/usb/lp0 + >>> + >>> 3) /usr/sbin/lpadmin -p [Printer Name] -m [PPD file] -v usb:[device file location] -E + >>> eg. + >>> /usr/sbin/lpadmin -p LBP2900 -m CNCUPSLBP2900CAPTK.ppd -v usb:/dev/usblp0 -E + >>> you can find ppds in the /usr/share/cups/model/ directory) + >>> + >>> 4) Now you can print. Consider using "systemctl enable cups" to have it start automatically on boot + +EOF +} + +post_upgrade(){ + post_remove + post_install +} + +post_remove(){ + if [ -d /usr/share/ppd ] ; then + rm -rf /usr/share/ppd/CN*ZK.ppd + fi +} + +op=$1 +shift +$op $* |