diff options
author | Karel Kočí <cynerd@email.cz> | 2019-09-02 20:31:32 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2019-09-02 20:31:32 +0200 |
commit | a05e0af361e847751b98af41e0a199346f144048 (patch) | |
tree | 0745c932747a4481908ab4dcdbe16eedc1b73ab9 /sys-kernel/linux | |
parent | 8c571379ad20a7f08611f7d8c4086c031cf632f3 (diff) | |
download | gentoo-personal-overlay-a05e0af361e847751b98af41e0a199346f144048.tar.gz gentoo-personal-overlay-a05e0af361e847751b98af41e0a199346f144048.tar.bz2 gentoo-personal-overlay-a05e0af361e847751b98af41e0a199346f144048.zip |
sys-kernel/linux: revert invalid configure script
Diffstat (limited to 'sys-kernel/linux')
-rwxr-xr-x | sys-kernel/linux/files/config_prepare.sh | 6 |
1 files changed, 3 insertions, 3 deletions
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 |