Skip to content

Commit ecf2479

Browse files
committed
hash-cd: Print digest to the default printer w/ 62x29mm PageSize
1 parent 2e507e0 commit ecf2479

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

script/hash-cd

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,9 @@ HASH=$(
4646
| head -c -1
4747
)
4848
info "CD in \"$CD_DEV\" has sha256 digest:\n$HASH"
49+
50+
if lpstat -p ql-600 > /dev/null; then
51+
lp -o PageSize=62x29mm <<< "$HASH" > /dev/null
52+
else
53+
info "no printer found, the digest must be transcribed manually"
54+
fi

0 commit comments

Comments
 (0)