From c6f7abd855ca11cf8edd960911f70c66b1102e44 Mon Sep 17 00:00:00 2001 From: Tad Date: Sun, 3 Jun 2018 07:48:34 -0400 Subject: [PATCH] Add an option to disable overclocks --- Scripts/LineageOS-14.1/Functions.sh | 2 +- Scripts/LineageOS-14.1/Patch.sh | 1 + Scripts/LineageOS-15.1/Functions.sh | 2 +- Scripts/LineageOS-15.1/Patch.sh | 1 + Scripts/init.sh | 1 + 5 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Scripts/LineageOS-14.1/Functions.sh b/Scripts/LineageOS-14.1/Functions.sh index eee4c7f7..26a39edc 100644 --- a/Scripts/LineageOS-14.1/Functions.sh +++ b/Scripts/LineageOS-14.1/Functions.sh @@ -75,7 +75,7 @@ patchWorkspace() { source $scripts/Patch.sh; source $scripts/Defaults.sh; - source $scripts/Overclock.sh; + if [ "$OVERCLOCKS_ENABLED" = true ]; then source $scripts/Overclock.sh; fi; source $scripts/Optimize.sh; source $scripts/Rebrand.sh; source $scripts/Theme.sh; diff --git a/Scripts/LineageOS-14.1/Patch.sh b/Scripts/LineageOS-14.1/Patch.sh index 55264b0e..0ed706df 100755 --- a/Scripts/LineageOS-14.1/Patch.sh +++ b/Scripts/LineageOS-14.1/Patch.sh @@ -198,6 +198,7 @@ cp -r $patches"android_vendor_cm/firmware_deblobber" .; cp $patches"android_vendor_cm/firmware_deblobber.mk" build/tasks/firmware_deblobber.mk; sed -i 's/CM_BUILDTYPE := UNOFFICIAL/CM_BUILDTYPE := dos/' config/common.mk; #Change buildtype sed -i 's/messaging/Silence/' config/telephony.mk; #Replace AOSP Messaging app with Silence +#if [ "$HOSTS_BLOCKING" = false ]; then echo "PRODUCT_PACKAGES += DNS66" >> config/sce.mk; fi; #Include DNS66 as an alternative if [ "$HOSTS_BLOCKING" = false ]; then cp $patches"android_vendor_cm/dns66.json" prebuilt/common/etc/dns66.json; fi; if [ "$HOSTS_BLOCKING" = false ]; then sed -i '4iPRODUCT_COPY_FILES += vendor/cm/prebuilt/common/etc/dns66.json:system/etc/dns66/settings.json' config/common.mk; fi; #Include DNS66 default config diff --git a/Scripts/LineageOS-15.1/Functions.sh b/Scripts/LineageOS-15.1/Functions.sh index 4cfc41b7..9326e97a 100644 --- a/Scripts/LineageOS-15.1/Functions.sh +++ b/Scripts/LineageOS-15.1/Functions.sh @@ -84,7 +84,7 @@ patchWorkspace() { source $scripts/Patch.sh; source $scripts/Defaults.sh; - source $scripts/Overclock.sh; + if [ "$OVERCLOCKS_ENABLED" = true ]; then source $scripts/Overclock.sh; fi; source $scripts/Optimize.sh; source $scripts/Rebrand.sh; source $scriptsCommon/Deblob.sh; diff --git a/Scripts/LineageOS-15.1/Patch.sh b/Scripts/LineageOS-15.1/Patch.sh index 12bbfa46..e222786f 100755 --- a/Scripts/LineageOS-15.1/Patch.sh +++ b/Scripts/LineageOS-15.1/Patch.sh @@ -198,6 +198,7 @@ cp -r $patches"android_vendor_lineage/firmware_deblobber" .; cp $patches"android_vendor_lineage/firmware_deblobber.mk" build/tasks/firmware_deblobber.mk; sed -i 's/LINEAGE_BUILDTYPE := UNOFFICIAL/LINEAGE_BUILDTYPE := dos/' config/common.mk; #Change buildtype sed -i 's/messaging/Silence/' config/telephony.mk; #Replace AOSP Messaging app with Silence +#if [ "$HOSTS_BLOCKING" = false ]; then echo "PRODUCT_PACKAGES += DNS66" >> config/sce.mk; fi; #Include DNS66 as an alternative if [ "$HOSTS_BLOCKING" = false ]; then cp $patches"android_vendor_lineage/dns66.json" prebuilt/common/etc/dns66.json; fi; if [ "$HOSTS_BLOCKING" = false ]; then sed -i '4iPRODUCT_COPY_FILES += vendor/lineage/prebuilt/common/etc/dns66.json:system/etc/dns66/settings.json' config/common.mk; fi; #Include DNS66 default config # diff --git a/Scripts/init.sh b/Scripts/init.sh index 5f89325e..6aab9f94 100644 --- a/Scripts/init.sh +++ b/Scripts/init.sh @@ -25,6 +25,7 @@ export MALWARE_SCAN_ENABLED=true; #Set true to perform a fast scan on patchWorks export MALWARE_SCAN_SETTING="quick"; #buildAll() scan speed. Options are quick, extra, slow, full export MICROG_INCLUDED=true; #Switch to false to prevent inclusion of microG export HOSTS_BLOCKING=true; #Switch to false to prevent inclusion of our HOSTS file +export OVERCLOCKS_ENABLED=true; #Switch to false to disable overclocks export STRONG_ENCRYPTION_ENABLED=false; #Switch to true to enable AES-256bit encryption XXX: THIS WILL **DESTROY** EXISTING INSTALLS! export NON_COMMERCIAL_USE_PATCHES=false; #Switch to false to prevent inclusion of non-commercial use patches #END OF USER CONFIGURABLE OPTIONS