forked from jan/cacert-devsetup
14 lines
227 B
Text
14 lines
227 B
Text
|
#!/bin/sh
|
||
|
|
||
|
set -eu
|
||
|
|
||
|
rm -f /srv/sockets/signer
|
||
|
socat -d -d PTY,link=/dev/ttyUSB0 UNIX-LISTEN:/srv/sockets/signer 2>&1 &
|
||
|
sleep 1
|
||
|
|
||
|
export SERIAL_PORT=/dev/ttyUSB0
|
||
|
|
||
|
cd /srv/CommModule/
|
||
|
|
||
|
touch server.pl-active
|
||
|
exec perl -w server.pl
|