Thibaut <ha...@slashdirt.org> [2023-01-08 00:02:06]:

> There might be an even easier/lighter way (short of enabling base64 in 
> busybox), AWK to the rescue:
> https://github.com/shane-kerr/AWK-base64decode
> 
> The code is clean and judging by the comment line 97, works with busybox awk.

BTW ucode has `b64dec()`[1] so perhaps another viable option.

1. https://github.com/jow-/ucode#663-b64decstr

Thibaut <ha...@slashdirt.org> [2023-01-08 22:37:20]:

> I wonder if it’s such a good idea to have discrepancies in busybox features 
> between targets?

You're right, it's not a good idea.

Brian Norris <computersforpe...@gmail.com> [2023-01-08 19:09:33]:

> Thanks! That does indeed work for me. And I might just throw it into
> target/linux/ipq806x/chromium/target.mk instead, since the generic
> target won't be using base64.

It works for me as well, but it's going to break some cases I've missed. Sorry
for the noise.

Cheers,

Petr

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to