mirror of
https://github.com/tommytran732/Linux-Setup-Scripts
synced 2024-11-22 17:41:32 -05:00
fwupd hardening on Red Hat systems
This commit is contained in:
parent
c88da56eb2
commit
ab72f9eba9
@ -101,6 +101,8 @@ sudo sed -i 's/^metalink=.*/&\&protocol=https/g' /etc/yum.repos.d/*
|
|||||||
|
|
||||||
# Update packages and firmware
|
# Update packages and firmware
|
||||||
sudo dnf upgrade -y
|
sudo dnf upgrade -y
|
||||||
|
echo 'UriSchemes=file;https' | sudo tee -a /etc/fwupd/fwupd.conf
|
||||||
|
sudo systemctl restart fwupd
|
||||||
sudo fwupdmgr get-devices
|
sudo fwupdmgr get-devices
|
||||||
sudo fwupdmgr refresh --force
|
sudo fwupdmgr refresh --force
|
||||||
sudo fwupdmgr get-updates -y
|
sudo fwupdmgr get-updates -y
|
||||||
|
@ -154,6 +154,8 @@ sudo systemctl enable --now dnf-automatic.timer
|
|||||||
|
|
||||||
#Setup fwupd
|
#Setup fwupd
|
||||||
sudo dnf install fwupd -y
|
sudo dnf install fwupd -y
|
||||||
|
echo 'UriSchemes=file;https' | sudo tee -a /etc/fwupd/fwupd.conf
|
||||||
|
sudo systemctl restart fwupd
|
||||||
mkdir -p /etc/systemd/system/fwupd-refresh.service.d
|
mkdir -p /etc/systemd/system/fwupd-refresh.service.d
|
||||||
echo '[Service]
|
echo '[Service]
|
||||||
ExecStart=/usr/bin/fwupdmgr update' | tee /etc/systemd/system/fwupd-refresh.service.d/override.conf
|
ExecStart=/usr/bin/fwupdmgr update' | tee /etc/systemd/system/fwupd-refresh.service.d/override.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user