Vendor the command set the menu and shell depend on
This commit is contained in:
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
# blob:summary=Update system firmware using fwupd. Ensures the fwupd EFI binary is installed
|
||||
# blob:requires-sudo=true
|
||||
|
||||
set -e
|
||||
echo -e "\e[32mUpdate Firmware\e[0m"
|
||||
|
||||
if blob-cmd-missing fwupdmgr; then
|
||||
blob-pkg-add fwupd
|
||||
fi
|
||||
|
||||
if [[ -d /sys/firmware/efi ]] && [[ -f /usr/lib/fwupd/efi/fwupdx64.efi ]]; then
|
||||
sudo install -D /usr/lib/fwupd/efi/fwupdx64.efi /boot/EFI/arch/fwupdx64.efi
|
||||
fi
|
||||
|
||||
fwupdmgr refresh --force
|
||||
sudo fwupdmgr update
|
||||
Reference in New Issue
Block a user