Tiny tweaks

This commit is contained in:
Tad 2021-05-12 02:42:50 -04:00
parent ccce1fad9b
commit 1cde58eaa4
7 changed files with 7 additions and 8 deletions

View file

@ -663,7 +663,7 @@ hardenDefconfig() {
do
sed -i 's/# '"CONFIG_$option"' is not set/'"CONFIG_$option"'=y/' $defconfigPath &>/dev/null || true;
#Some defconfigs are very minimal/not-autogenerated, so lets add the rest. Obviously most won't have any affect as they aren't supported.
if [[ "$defconfigPath" == *"lineage"* ]]; then
if [[ "$defconfigPath" == *"lineage"* ]] && [[ "$1" != *"kernel/oneplus/msm8996"* ]]; then
if ! grep -q "CONFIG_$option=y" $defconfigPath; then
echo "CONFIG_$option=y" | tee -a $defconfigPath > /dev/null;
fi;