diff options
author | sheldonh <sheldonh@FreeBSD.org> | 2001-12-14 11:06:03 +0000 |
---|---|---|
committer | sheldonh <sheldonh@FreeBSD.org> | 2001-12-14 11:06:03 +0000 |
commit | 4e260b134ff188548ec2c8a16a37570a4abf1257 (patch) | |
tree | 672d7786f89ed3b67f221098cb86cf0bc53ad5e3 /contrib/smbfs/examples/print | |
download | FreeBSD-src-4e260b134ff188548ec2c8a16a37570a4abf1257.zip FreeBSD-src-4e260b134ff188548ec2c8a16a37570a4abf1257.tar.gz |
Import smbfs-1.4.1.
This is Boris Popov's SMB/CIFS file system implementation for FreeBSD.
Obtained from: Boris Popov via ftp://ftp.butya.kz/pub/smbfs/
Diffstat (limited to 'contrib/smbfs/examples/print')
-rwxr-xr-x | contrib/smbfs/examples/print/lj6l | 22 | ||||
-rwxr-xr-x | contrib/smbfs/examples/print/ljspool | 4 | ||||
-rw-r--r-- | contrib/smbfs/examples/print/printcap.sample | 7 | ||||
-rwxr-xr-x | contrib/smbfs/examples/print/tolj | 5 |
4 files changed, 38 insertions, 0 deletions
diff --git a/contrib/smbfs/examples/print/lj6l b/contrib/smbfs/examples/print/lj6l new file mode 100755 index 0000000..578611a --- /dev/null +++ b/contrib/smbfs/examples/print/lj6l @@ -0,0 +1,22 @@ +#!/bin/sh + +# Sample input filter to print on HP Laser Jet printers +# Installed in /usr/local/libexec/hp6l + +DEVICE="ljet3" +PAPERSIZE="a4" + +printf "\033&k2G" || exit 2 + +read first_line +first_two_chars=`expr "$first_line" : '\(..\)'` + +if [ "$first_two_chars" = "%!" ]; then + exec 3>&1 1>&2 + /usr/local/bin/gs -sPAPERSIZE=${PAPERSIZE} -dSAFER -dNOPAUSE -q -sDEVICE=${DEVICE} \ + -sOutputFile=/dev/fd/3 - && exit 0 +else + echo $first_line && cat && printf "\033&l0H" && exit 0 +fi + +exit 2 diff --git a/contrib/smbfs/examples/print/ljspool b/contrib/smbfs/examples/print/ljspool new file mode 100755 index 0000000..32b09ea --- /dev/null +++ b/contrib/smbfs/examples/print/ljspool @@ -0,0 +1,4 @@ +#!/bin/sh + +/usr/local/libexec/lj6l | /usr/local/libexec/tolj && exit 0 +exit 2 diff --git a/contrib/smbfs/examples/print/printcap.sample b/contrib/smbfs/examples/print/printcap.sample new file mode 100644 index 0000000..6d1e899 --- /dev/null +++ b/contrib/smbfs/examples/print/printcap.sample @@ -0,0 +1,7 @@ +# $Id: printcap.sample,v 1.1 2000/06/11 08:13:28 bp Exp $ + +# Sample printcap entry for NetWare printer +fserverlj|LJ6L on the fserver:\ + :sh:lp=/dev/null:\ + :if=/usr/local/libexec/ljspool: \ + :sd=/var/spool/output/nwhost:lf=/var/log/lpd-errs: diff --git a/contrib/smbfs/examples/print/tolj b/contrib/smbfs/examples/print/tolj new file mode 100755 index 0000000..e74cb90 --- /dev/null +++ b/contrib/smbfs/examples/print/tolj @@ -0,0 +1,5 @@ +#!/bin/sh + +QUEUE="//joe@fserver/lj" + +/usr/local/bin/smbutil print ${QUEUE} - |