diff options
author | Taru Karttunen <taruti@taruti.net> | 2011-03-30 16:53:33 +0300 |
---|---|---|
committer | Taru Karttunen <taruti@taruti.net> | 2011-03-30 16:53:33 +0300 |
commit | e463eb40363ff4c68b1d903f4e0cdd0ac1c5977f (patch) | |
tree | d5e9f57c28f026cb21de3bd77cc10cd7f64aaa85 /sys/lib/lp/bin | |
parent | b41b9034225ab3e49980d9de55c141011b6383b0 (diff) |
Import sources from 2011-03-30 iso image - sys/lib
Diffstat (limited to 'sys/lib/lp/bin')
-rwxr-xr-x | sys/lib/lp/bin/UNLOCK | 3 | ||||
-rwxr-xr-x | sys/lib/lp/bin/kill_xerox-4512 | 4 | ||||
-rwxr-xr-x | sys/lib/lp/bin/lpscratch | 2 | ||||
-rwxr-xr-x | sys/lib/lp/bin/lpsend.rc | 18 | ||||
-rwxr-xr-x | sys/lib/lp/bin/true | 2 |
5 files changed, 29 insertions, 0 deletions
diff --git a/sys/lib/lp/bin/UNLOCK b/sys/lib/lp/bin/UNLOCK new file mode 100755 index 000000000..8d54345ea --- /dev/null +++ b/sys/lib/lp/bin/UNLOCK @@ -0,0 +1,3 @@ +#!/bin/rc + +rm -f $1/LOCK diff --git a/sys/lib/lp/bin/kill_xerox-4512 b/sys/lib/lp/bin/kill_xerox-4512 new file mode 100755 index 000000000..4479d550d --- /dev/null +++ b/sys/lib/lp/bin/kill_xerox-4512 @@ -0,0 +1,4 @@ +#!/bin/rc + +if (~ $#* 0) exits 'no argument' +/$cputype/bin/aux/lpdsend -dPORT1 -k $1 $OUTDEV diff --git a/sys/lib/lp/bin/lpscratch b/sys/lib/lp/bin/lpscratch new file mode 100755 index 000000000..e11ddc624 --- /dev/null +++ b/sys/lib/lp/bin/lpscratch @@ -0,0 +1,2 @@ +#!/bin/rc +LPSCRATCH=/sys/lib/lp diff --git a/sys/lib/lp/bin/lpsend.rc b/sys/lib/lp/bin/lpsend.rc new file mode 100755 index 000000000..74806cded --- /dev/null +++ b/sys/lib/lp/bin/lpsend.rc @@ -0,0 +1,18 @@ +#!/bin/rc +if (! ~ $DEBUG '') { flag x + } +if (test -e /net/tcp/clone) { + dialstring=`{ndb/query sys $1 dom} + network=tcp + if (~ $#dialstring 0 || ! ~ $dialstring '') { + dialstring=$1 + } + if(lpsend $network^!^$dialstring^!printer) exit '' + rv='tcp failed' +} +if not rv='no tcp' + + +if (! ~ $dialstring '') + exit 'lpsend: no dialstring' +if not + exit 'lpsend: '^$rv diff --git a/sys/lib/lp/bin/true b/sys/lib/lp/bin/true new file mode 100755 index 000000000..daa0ab9ff --- /dev/null +++ b/sys/lib/lp/bin/true @@ -0,0 +1,2 @@ +#!/bin/rc +exit '' |