diff --git a/config b/config index 5fe8b89..db0997b 100644 --- a/config +++ b/config @@ -3,4 +3,6 @@ # Number of clients, maximum 2 CLIENTS=1 -EVENT="Chaospott" +# Event name. +# Please leave the export be. +export EVENT="Chaospott" diff --git a/include/nixdorf b/include/nixdorf index 9a5a2ef..6cdf1f4 100755 --- a/include/nixdorf +++ b/include/nixdorf @@ -2,12 +2,6 @@ function init() { - if [ -n "$PRINTDEVICE" ]; then - export DEVICE="$PRINTDEVICE" - else - export DEVICE=/dev/ttyUSB2 - fi - stty -F $DEVICE 1:0:80000dbd:0:3:1c:7f:15:4:5:1:0:11:13:1a:0:12:f:17:16:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 # \x1b\x47 - Double Strike diff --git a/start_dialog b/start_dialog index 8001082..6a54785 100755 --- a/start_dialog +++ b/start_dialog @@ -4,9 +4,10 @@ export TERM=vt220 export DIALOGRC=dialogrc -source ./config +source $(dirname $0)/config export PRINTDEVICE="/dev/ttyUSB$CLIENTS" +export DEVICE="$PRINTDEVICE" LOCKFILE=/tmp/c3govlock TMP=/tmp/$RANDOM