mirror of
https://github.com/LukeHagar/omarchy.git
synced 2025-12-06 12:37:46 +00:00
feat(update): Add firmware update script to update process (#2014)
* Add firmware update script and include in update process * typo * type 2 * add sudo * Add firmware update option to update menu * Remove firmware update command from update process * Lazy-install firmware updater * Move option down and change icon * Only lazy install if missing --------- Co-authored-by: David Heinemeier Hansson <david@hey.com>
This commit is contained in:
@@ -385,13 +385,14 @@ show_remove_menu() {
|
||||
}
|
||||
|
||||
show_update_menu() {
|
||||
case $(menu "Update" " Omarchy\n Branch\n Config\n Extra Themes\n Process\n Hardware\n Password\n Timezone") in
|
||||
case $(menu "Update" " Omarchy\n Branch\n Config\n Extra Themes\n Process\n Hardware\n Firmware\n Password\n Timezone") in
|
||||
*Omarchy*) present_terminal omarchy-update ;;
|
||||
*Branch*) show_update_branch_menu ;;
|
||||
*Config*) show_update_config_menu ;;
|
||||
*Themes*) present_terminal omarchy-theme-update ;;
|
||||
*Process*) show_update_process_menu ;;
|
||||
*Hardware*) show_update_hardware_menu ;;
|
||||
*Firmware*) present_terminal omarchy-update-firmware ;;
|
||||
*Timezone*) omarchy-cmd-tzupdate ;;
|
||||
*Password*) show_update_password_menu ;;
|
||||
*) show_main_menu ;;
|
||||
|
||||
11
bin/omarchy-update-firmware
Executable file
11
bin/omarchy-update-firmware
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
echo -e "\e[32mUpdate Firmare\e[0m"
|
||||
|
||||
if omarchy-cmd-missing fwupdmgr; then
|
||||
omarchy-pkg-add fwupd
|
||||
fi
|
||||
|
||||
fwupdmgr refresh
|
||||
sudo fwupdmgr update
|
||||
Reference in New Issue
Block a user