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:
parent
0287cf74a6
commit
e11e7587df
@ -163,15 +163,15 @@ sudo dnf install tuned -y
|
||||
|
||||
virt_type=$(echo $(virt-what))
|
||||
if [ "$virt_type" = "" ]; then
|
||||
output "Virtualization: Bare Metal."
|
||||
output "Virtualization: Bare Metal."
|
||||
elif [ "$virt_type" = "openvz lxc" ]; then
|
||||
output "Virtualization: OpenVZ 7."
|
||||
output "Virtualization: OpenVZ 7."
|
||||
elif [ "$virt_type" = "xen xen-hvm" ]; then
|
||||
output "Virtualization: Xen-HVM."
|
||||
output "Virtualization: Xen-HVM."
|
||||
elif [ "$virt_type" = "xen xen-hvm aws" ]; then
|
||||
output "Virtualization: Xen-HVM on AWS."
|
||||
output "Virtualization: Xen-HVM on AWS."
|
||||
else
|
||||
output "Virtualization: $virt_type."
|
||||
output "Virtualization: $virt_type."
|
||||
fi
|
||||
|
||||
# Setup tuned
|
||||
@ -183,9 +183,9 @@ fi
|
||||
|
||||
# Setup real-ucode
|
||||
if [ "$virt_type" = "" ]; then
|
||||
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 dnf config-manager --save --setopt=divested.includepkgs=divested-release,real-ucode,microcode_ctl,amd-ucode-firmware
|
||||
sudo dnf install real-ucode
|
||||
sudo dracut -f
|
||||
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 dnf config-manager --save --setopt=divested.includepkgs=divested-release,real-ucode,microcode_ctl,amd-ucode-firmware
|
||||
sudo dnf install real-ucode
|
||||
sudo dracut -f
|
||||
fi
|
Loading…
Reference in New Issue
Block a user