More renaming; more client infos; documentation
This commit is contained in:
18
README.md
18
README.md
@@ -1,8 +1,24 @@
|
||||
# c3gov
|
||||
Fill out your hacker passport using a professional dot matrix printer.
|
||||
|
||||
## Hardware Requirements
|
||||
- Wincor Nixdorf HighPrint 4915
|
||||
- Raspberry Pi
|
||||
- 3x - 5x USB RS232 adapter (male -> USB)
|
||||
- 1x for printer
|
||||
- 4x for two clients (2x each client)
|
||||
- 2x RS232 connector (female -> female)
|
||||
- 2x old laptops with some debian without GUI, only tty.
|
||||
|
||||
## Software Requirements
|
||||
For the clients:
|
||||
- screen
|
||||
|
||||
For the Raspberry Pi
|
||||
- dialog
|
||||
|
||||
## Set event name
|
||||
To set the event name, just change the `EVENT` variable in `./start` at the top.
|
||||
To set the event name, just change the `EVENT` variable in `./start_dialog` at the top.
|
||||
|
||||
## Supported Passports
|
||||
The following passports are supported atm:
|
||||
|
||||
2
clients/README.md
Normal file
2
clients/README.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# Clients
|
||||
For the clients using RS232 u need to configure the /etc/passwd to use the officerload script
|
||||
3
clients/officerload
Normal file
3
clients/officerload
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
clear
|
||||
screen /dev/ttyUSB0
|
||||
@@ -222,7 +222,7 @@ function printReg() {
|
||||
return 0
|
||||
}
|
||||
|
||||
function printC3RegStamp() {
|
||||
function printc3govStamp() {
|
||||
askForField "c3gov stamp" "$1"
|
||||
if [ $? -eq 0 ]; then
|
||||
checkLockFile
|
||||
@@ -343,7 +343,7 @@ function menuFor() {
|
||||
dialog --backtitle "$BT" \
|
||||
--menu "Select ID type:" 14 40 3 \
|
||||
1 "Registration" \
|
||||
2 "c3Reg Stamp" \
|
||||
2 "c3gov Stamp" \
|
||||
3 "GPG" \
|
||||
9 "Back" 2> $TMP
|
||||
|
||||
@@ -354,14 +354,14 @@ function menuFor() {
|
||||
if [ $? -eq 0 ]; then
|
||||
printReg "$1"
|
||||
if [ "$STAMP" == "true" ]; then
|
||||
printC3RegStamp "$1"
|
||||
printc3govStamp "$1"
|
||||
fi
|
||||
if [ -n "$FP" ]; then
|
||||
printGPG "$1"
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
2) printC3RegStamp "$1"
|
||||
2) printc3govStamp "$1"
|
||||
;;
|
||||
3) enterGPG
|
||||
if [ $? -eq 0 ]; then
|
||||
|
||||
Reference in New Issue
Block a user