openwrt/target/linux/lantiq/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 treewide: convert MAC address location offsets to hexadecimal 2019-08-14 12:10:12 +02:00
hotplug.d treewide: fix hex2dec conversion for MAC address checksum offset 2019-09-29 00:46:13 +02:00
uci-defaults lantiq: create ATM/PTM interfaces with dsl as netdev name 2018-01-10 08:08:53 +01:00
inittab lantiq/basefiles: use shutdown instead of stop when the system goes down 2018-11-25 19:26:55 +01:00