From 2b2166437389ee1fb0fa4d29cf7c76acacbb9a9d Mon Sep 17 00:00:00 2001 From: DerryPlaysXd <54913019+DerryPlaysXd@users.noreply.github.com> Date: Fri, 10 Dec 2021 02:41:11 +0100 Subject: [PATCH] Update 1-setup.sh --- 1-setup.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/1-setup.sh b/1-setup.sh index c66ff6b..d6c789b 100755 --- a/1-setup.sh +++ b/1-setup.sh @@ -235,6 +235,23 @@ elif lspci | grep -E "Integrated Graphics Controller"; then fi echo -e "\nDone!\n" + +if ! source install.conf; then + read -p "Are you using a laptop? (Y/n): " laptop + if [[ $laptop == y ]] || [[$laptop == Y ]] then + echo "\nCLONING: auto-cpufreq\n" + git clone https://github.com/AdnanHodzic/auto-cpufreq + cd ${HOME}/auto-cpufreq + sudo chmod +x auto-cpufreq-installer + sudo ./auto-cpufreq-installer + sudo auto-cpufreq --install + cd ~/ + else + echo "\nOk!\n" +else + echo "Proceed to the next step\n" +fi + if ! source install.conf; then read -p "Please enter username:" username echo "username=$username" >> ${HOME}/ArchTitus/install.conf