SecuritySticker-Support; docs and logo
This commit is contained in:
40
jhp/secure
Executable file
40
jhp/secure
Executable file
@@ -0,0 +1,40 @@
|
||||
#!/bin/bash
|
||||
FILE=/tmp/$RANDOM
|
||||
TOP=5
|
||||
TOP=13
|
||||
TOP2=51
|
||||
LEFT=23
|
||||
|
||||
VISAPAGES=2
|
||||
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
echo "Syntax: $0 <SecurityNumber>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
sn=$1
|
||||
|
||||
source ../include/nixdorf
|
||||
init
|
||||
|
||||
smallLetters $FILE
|
||||
printf "\x1b\x33\x0e" >> $FILE
|
||||
makeNewline $TOP $FILE
|
||||
makeLeft $LEFT $FILE
|
||||
|
||||
printf "$sn" >> $FILE
|
||||
|
||||
makeNewline $(($TOP2 - $TOP)) $FILE
|
||||
makeLeft $LEFT $FILE
|
||||
printf "$sn" >> $FILE
|
||||
resetLetters $FILE
|
||||
|
||||
echo "Only use the pages saying \"VISAs\" on top"
|
||||
for (( i=1; i<=$VISAPAGES; i++)); do
|
||||
read -s -p "Insert page $i of $VISAPAGES and press enter."
|
||||
echo ""
|
||||
printFile $FILE
|
||||
done
|
||||
|
||||
rm $FILE
|
||||
Reference in New Issue
Block a user