More renaming; more client infos; documentation

This commit is contained in:
2025-11-28 18:51:07 +01:00
parent f9ac98d829
commit 09d35810c0
4 changed files with 26 additions and 5 deletions

View File

@@ -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
View 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
View File

@@ -0,0 +1,3 @@
#!/bin/bash
clear
screen /dev/ttyUSB0

View File

@@ -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