Commit Graph

2 Commits

Author SHA1 Message Date
Chris Fiege 5eb7ae6a19 telem-seq.sh: Make compatible to busybox sh
busybox's sh-implementation is differnt from the normal sh:

In busybox-expr an empty string does not evaluate to int(0).
Calling `expr ($SEQ +1)` with `SEQ=""` fails.

This patch works around this behavior by making sure the file
exists.

I left the pipe for stderr around the `cat` in place to make
sure I do not break any other error cases.

Signed-off-by: Chris Fiege <chris@tinyhost.de>
2018-11-20 22:14:27 +01:00
WB2OSZ 169bad18d1 Add script to generate telemetry sequence numbers. 2015-12-30 21:49:13 -05:00