fix update

This commit is contained in:
2026-10-19 13:56:54 -06:00
parent a15eac4240
commit a65f07c22e
21 changed files with 241 additions and 64 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/bin/bash
# Firmware updates often need a reboot, so this only reports what's available.
is_installed() {
command -v fwupdmgr &>/dev/null
}
run_update() {
echo "Checking for firmware updates..."
fwupdmgr refresh &>/dev/null
# get-updates exits 2 when there is nothing to update
if fwupdmgr get-updates --no-unreported-check 2>/dev/null; then
echo "Firmware updates are available. Run 'fwupdmgr update' to install them."
else
echo "No firmware updates available."
fi
return 0
}