From 8c571379ad20a7f08611f7d8c4086c031cf632f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 2 Sep 2019 07:43:14 +0200 Subject: sys-kernel/linux: update to 5.2.11 --- sys-kernel/linux/files/config_prepare.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys-kernel/linux/files/config_prepare.sh') diff --git a/sys-kernel/linux/files/config_prepare.sh b/sys-kernel/linux/files/config_prepare.sh index ede6fc8..3f21f5c 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 - while read L; do - echo "$L" | grep -qE "^[[:space:]]*$" && continue # ignore empty lines - echo "$L" | grep -qE "#.*" && continue # Ignore comments + # (grep) Ignore empty lines and comments + grep -qvE "^[[:space:]]*$|^#" | while read -r L; do + awk -v # Remove lines with changed settings sed -i "#^$(echo "$L" | grep -oE '^CONFIG_.*=')#d" .config # Put config -- cgit v1.2.3