mirror of https://github.com/wb2osz/direwolf.git
Merge 5eb7ae6a19
into a1e2d1c3a8
This commit is contained in:
commit
7a702b9bc5
|
@ -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
|
||||
echo $SEQ | tee /tmp/seq
|
||||
|
|
Loading…
Reference in New Issue