openwrt/target/linux/lantiq/base-files
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
..
etc treewide: fix hex2dec conversion for MAC address checksum offset 2019-09-29 00:46:13 +02:00
lib lantiq: replace backticks by $(...) and remove useless echo 2019-09-29 00:46:13 +02:00
sbin lantiq: split up dsl_notify.sh into separate notification handlers 2017-08-06 09:22:03 +02:00