This commit is contained in:
Chrissi^ (Chris Fiege) 2019-03-06 13:02:47 +00:00 committed by GitHub
commit 7a702b9bc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -2,6 +2,10 @@
# Generate sequence number as described here:
# https://github.com/wb2osz/direwolf/issues/9
#
if [ ! -f /tmp/seq ]; then
echo 0 > /tmp/seq
fi
SEQ=`cat /tmp/seq 2>/dev/null`
SEQ=$(expr \( $SEQ + 1 \) % 1000)
echo $SEQ | tee /tmp/seq