From a05e0af361e847751b98af41e0a199346f144048 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 2 Sep 2019 20:31:32 +0200 Subject: sys-kernel/linux: revert invalid configure script --- sys-kernel/linux/files/config_prepare.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys-kernel/linux/files') diff --git a/sys-kernel/linux/files/config_prepare.sh b/sys-kernel/linux/files/config_prepare.sh index 3f21f5c..ede6fc8 100755 --- a/sys-kernel/linux/files/config_prepare.sh +++ b/sys-kernel/linux/files/config_prepare.sh @@ -27,9 +27,9 @@ fi # Apply changes in config for CNF in $CONFIG; do - # (grep) Ignore empty lines and comments - grep -qvE "^[[:space:]]*$|^#" | while read -r L; do - awk -v + while read L; do + echo "$L" | grep -qE "^[[:space:]]*$" && continue # ignore empty lines + echo "$L" | grep -qE "#.*" && continue # Ignore comments # Remove lines with changed settings sed -i "#^$(echo "$L" | grep -oE '^CONFIG_.*=')#d" .config # Put config -- cgit v1.2.3