File: telem-seq.sh

package info (click to toggle)
direwolf 1.6%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,672 kB
  • sloc: ansic: 53,866; perl: 170; cpp: 124; sh: 113; makefile: 41; python: 11
file content (7 lines) | stat: -rw-r--r-- 193 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
#!/bin/sh
# Generate sequence number as described here:
# https://github.com/wb2osz/direwolf/issues/9
#
SEQ=`cat /tmp/seq 2>/dev/null`
SEQ=$(expr \( $SEQ + 1 \) % 1000)
echo $SEQ | tee /tmp/seq