separated apt and fwupdmgr

This commit is contained in:
z0rc 2024-01-22 17:05:42 +01:00
parent 2d4cd76a7b
commit 22666a2c87
4 changed files with 21 additions and 15 deletions

View File

@ -6,6 +6,7 @@ set -eEuxo pipefail
script_dir="$(realpath -e "$(dirname "${BASH_SOURCE[0]}")")"
"${script_dir}/update-system.sh"
sudo "${script_dir}/update-apt.sh"
"${script_dir}/update-fw.sh"
"${script_dir}/update-flatpak.sh"
"${script_dir}/update-mamba.sh"

11
update-scripts/update-apt.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
set -eEuxo pipefail
apt clean
apt update
apt full-upgrade
apt autopurge
apt purge $(dpkg -l | awk '/^rc/ { print $2 }')

8
update-scripts/update-fw.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
set -eEuxo pipefail
sudo fwupdmgr refresh --force
sudo fwupdmgr update

View File

@ -1,14 +0,0 @@
#!/bin/bash
set -eEuxo pipefail
sudo apt clean
sudo apt update
sudo apt full-upgrade
sudo apt autopurge
sudo apt purge $(dpkg -l | awk '/^rc/ { print $2 }')
sudo fwupdmgr refresh --force
sudo fwupdmgr update