From 22666a2c879a2d39ab1f850ee44504cbca1e1fba Mon Sep 17 00:00:00 2001 From: z0rc Date: Mon, 22 Jan 2024 17:05:42 +0100 Subject: [PATCH] separated apt and fwupdmgr --- update-scripts/update-all.sh | 3 ++- update-scripts/update-apt.sh | 11 +++++++++++ update-scripts/update-fw.sh | 8 ++++++++ update-scripts/update-system.sh | 14 -------------- 4 files changed, 21 insertions(+), 15 deletions(-) create mode 100755 update-scripts/update-apt.sh create mode 100755 update-scripts/update-fw.sh delete mode 100755 update-scripts/update-system.sh diff --git a/update-scripts/update-all.sh b/update-scripts/update-all.sh index bf732ed..570cbff 100755 --- a/update-scripts/update-all.sh +++ b/update-scripts/update-all.sh @@ -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" diff --git a/update-scripts/update-apt.sh b/update-scripts/update-apt.sh new file mode 100755 index 0000000..bfa39a5 --- /dev/null +++ b/update-scripts/update-apt.sh @@ -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 }') diff --git a/update-scripts/update-fw.sh b/update-scripts/update-fw.sh new file mode 100755 index 0000000..c98c6dc --- /dev/null +++ b/update-scripts/update-fw.sh @@ -0,0 +1,8 @@ +#!/bin/bash + + +set -eEuxo pipefail + + +sudo fwupdmgr refresh --force +sudo fwupdmgr update diff --git a/update-scripts/update-system.sh b/update-scripts/update-system.sh deleted file mode 100755 index 557ef22..0000000 --- a/update-scripts/update-system.sh +++ /dev/null @@ -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