1
0
mirror of https://github.com/tommytran732/Linux-Setup-Scripts synced 2024-11-09 11:41:33 -05:00

Fix indentation

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2023-12-01 19:43:42 -07:00
parent 0287cf74a6
commit e11e7587df
No known key found for this signature in database
GPG Key ID: D30DEC268D3FEB17

View File

@ -163,15 +163,15 @@ sudo dnf install tuned -y
virt_type=$(echo $(virt-what)) virt_type=$(echo $(virt-what))
if [ "$virt_type" = "" ]; then if [ "$virt_type" = "" ]; then
output "Virtualization: Bare Metal." output "Virtualization: Bare Metal."
elif [ "$virt_type" = "openvz lxc" ]; then elif [ "$virt_type" = "openvz lxc" ]; then
output "Virtualization: OpenVZ 7." output "Virtualization: OpenVZ 7."
elif [ "$virt_type" = "xen xen-hvm" ]; then elif [ "$virt_type" = "xen xen-hvm" ]; then
output "Virtualization: Xen-HVM." output "Virtualization: Xen-HVM."
elif [ "$virt_type" = "xen xen-hvm aws" ]; then elif [ "$virt_type" = "xen xen-hvm aws" ]; then
output "Virtualization: Xen-HVM on AWS." output "Virtualization: Xen-HVM on AWS."
else else
output "Virtualization: $virt_type." output "Virtualization: $virt_type."
fi fi
# Setup tuned # Setup tuned
@ -183,9 +183,9 @@ fi
# Setup real-ucode # Setup real-ucode
if [ "$virt_type" = "" ]; then if [ "$virt_type" = "" ]; then
sudo dnf install 'https://divested.dev/rpm/fedora/divested-release-20230406-2.noarch.rpm' sudo dnf install 'https://divested.dev/rpm/fedora/divested-release-20230406-2.noarch.rpm'
sudo sed -i 's/^metalink=.*/&?protocol=https/g' /etc/yum.repos.d/divested-release.repo sudo sed -i 's/^metalink=.*/&?protocol=https/g' /etc/yum.repos.d/divested-release.repo
sudo dnf config-manager --save --setopt=divested.includepkgs=divested-release,real-ucode,microcode_ctl,amd-ucode-firmware sudo dnf config-manager --save --setopt=divested.includepkgs=divested-release,real-ucode,microcode_ctl,amd-ucode-firmware
sudo dnf install real-ucode sudo dnf install real-ucode
sudo dracut -f sudo dracut -f
fi fi