Update 1-setup.sh

This commit is contained in:
DerryPlaysXd 2021-12-10 02:41:11 +01:00 committed by GitHub
parent a0b720dfd2
commit 2b21664373
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 0 deletions

View File

@ -235,6 +235,23 @@ elif lspci | grep -E "Integrated Graphics Controller"; then
fi fi
echo -e "\nDone!\n" 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 if ! source install.conf; then
read -p "Please enter username:" username read -p "Please enter username:" username
echo "username=$username" >> ${HOME}/ArchTitus/install.conf echo "username=$username" >> ${HOME}/ArchTitus/install.conf