ath79: improve mikrotik-caldata.sh
authorThibaut VARÈNE <hacks@slashdirt.org>
Wed, 18 Mar 2020 09:35:26 +0000 (10:35 +0100)
committerKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Sat, 4 Apr 2020 10:18:58 +0000 (11:18 +0100)
commitfdac4c085daccd774b4eba6b8c3fca2739cbb8dd
tree9c795faf1817ae4737d2aa76a5ac96f97f0c392e
parent817e1323322c9d58464330a15994e8693b48b9c5
ath79: improve mikrotik-caldata.sh

Reduce unnecessary flash wear and be tidy:
- Run the extraction only if necessary
- Extract temporary file to /tmp
- cleanup after execution

Tested-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
target/linux/ath79/mikrotik/base-files/lib/functions/mikrotik-caldata.sh