diff options
Diffstat (limited to 'sys-kernel/linux/files')
-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 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 |