mirror of https://github.com/dirtbags/moth.git
p2console busy loops when it cannot read from stdin
This commit is contained in:
parent
efacc951a0
commit
511703da5e
|
@ -1,5 +1,9 @@
|
|||
#! /bin/sh
|
||||
|
||||
while true; do
|
||||
TIME=$(date +%s)
|
||||
/opt/p2/bin/p2console
|
||||
if [ $TIME = $(date +%s) ]; then
|
||||
exit
|
||||
fi
|
||||
done | /opt/p2/bin/modem
|
||||
|
|
Loading…
Reference in New Issue