Update fedoraEasy.sh

This commit is contained in:
Tahinli 2022-12-05 19:47:27 +03:00
parent 66d9ac93dd
commit 698e595aea

View file

@ -31,6 +31,12 @@ function kernelCheck
echo -e '\n-->Kernel Update Selected\n Checking...\n' echo -e '\n-->Kernel Update Selected\n Checking...\n'
sudo dnf update -y sudo dnf update -y
} }
function cleaning
{
echo -e '\n-->Cleaning Selected\n'
sudo dnf autoremove -y
sudo dnf clean all -y
}
function installation function installation
{ {
echo -e '\n Installation Selected\n Starting...\n' echo -e '\n Installation Selected\n Starting...\n'
@ -68,7 +74,7 @@ function restartSelection
;; ;;
esac esac
} }
echo -e '0) Kernel Uptade Check\n1) Hands Free Complete Setup\n2) Only Fix Config Files\n3) Only Speed Up DNF\n4) Only Activate RPM-Fusion Repos\n5) Only Add Additional Repos\n6) Only Install Programs' echo -e '0) Kernel Uptade Check\n1) Hands Free Complete Setup\n2) Only Fix Config Files\n3) Only Speed Up DNF\n4) Only Activate RPM-Fusion Repos\n5) Only Add Additional Repos\n6) Only Install Programs\n7) Only Cleaning'
read selection read selection
case $selection in case $selection in
0) 0)
@ -80,6 +86,7 @@ case $selection in
additionalRepo additionalRepo
configFix configFix
installation installation
cleaning
;; ;;
2) 2)
configFix configFix
@ -96,9 +103,11 @@ case $selection in
6) 6)
installation installation
;; ;;
7)
cleaning
;;
*) *)
echo -e ' -# Invalid Selection #-\n QUITING' echo -e ' -# Invalid Selection #-\n QUITING'
;; ;;
esac esac
sudo dnf autoremove -y
restartSelection restartSelection