From 65d29c4ea76338359822ab575b29b5332730d685 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Fri, 3 Nov 2017 03:05:03 +0100 Subject: reproducible_lede: add newline to $CONFIG The missing newline makes the first line of the static config invalid. In particular CONFIG_ALL=y got invalidated. Additional check for empty lines and remove them. Signed-off-by: Holger Levsen --- bin/reproducible_lede_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/reproducible_lede_common.sh b/bin/reproducible_lede_common.sh index 88ce45a7..e71494cf 100644 --- a/bin/reproducible_lede_common.sh +++ b/bin/reproducible_lede_common.sh @@ -230,7 +230,7 @@ openwrt_apply_variations() { openwrt_config() { CONFIG=$1 - printf "$CONFIG" > .config + printf "$CONFIG\n" | grep '^[^ ]' > .config printf "CONFIG_ALL=y\n" >> .config printf "CONFIG_AUTOREMOVE=y\n" >> .config printf "CONFIG_CLEAN_IPKG=y\n" >> .config -- cgit v1.2.3-70-g09d2