summaryrefslogtreecommitdiff
path: root/sys-kernel/linux/files/config_prepare.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel/linux/files/config_prepare.sh')
-rwxr-xr-xsys-kernel/linux/files/config_prepare.sh6
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