dotfiles/linux-utils/.local/bin/admin-tasks

24 lines
405 B
Bash
Executable File

#!/bin/sh
# Formatting:
# https://stackoverflow.com/questions/2924697/how-does-one-output-bold-text-in-bash
bold=$(tput bold)
normal=$(tput sgr0)
bold_echo() {
echo "${bold}$1${normal}"
}
# run fwupmgr
firmware() {
bold_echo "Devices available:"
fwupdmgr get-devices
bold_echo "Updates available:"
fwupdmgr get-updates
bold_echo "Use 'fwupdmgr update' to update all firmware"
}
firmware