openwrt/target/linux/ath79/base-files/etc
Adrian Schmutzler 0aab49d234 treewide: fix hex2dec conversion for MAC address checksum offset
If chksum_offset is converted by $(($...)) at the beginning, the
check [ -n "$chksum_offset" ] will always return true, as the
conversion yields "0" for an empty argument, and [ -n "0" ] is
true.

With this patch, the variable is not converted before the check,
but only when it's used in dd.

No conversion is done for use in hexdump, as this can deal with
hex value offsets.

Fixes: b133e466b0 ("treewide: convert WiFi caldata size and offset to hexadecimal")
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2019-09-29 00:46:13 +02:00
..
board.d ath79: remove redundant ucidef_set_interfaces_* calls in 02_network 2019-09-25 22:42:03 +02:00
hotplug.d treewide: fix hex2dec conversion for MAC address checksum offset 2019-09-29 00:46:13 +02:00
init.d ath79: adtran,bsap1840/bsap1800-v2: move bootcount out of 02_network 2019-08-17 23:52:34 +08:00
uci-defaults ath79: add support for TP-Link RE355 v1 and RE450 v1 2019-07-17 23:14:23 +02:00