mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-02-19 12:41:05 +00:00
fix: Add check for valve hardware in jupiter-biosupdate
This commit is contained in:
parent
15969013f8
commit
55663550d0
@ -2,10 +2,14 @@ diff --git a/usr/bin/jupiter-biosupdate b/usr/bin/jupiter-biosupdate
|
||||
index a8d6059..7dfac37 100755
|
||||
--- a/usr/bin/jupiter-biosupdate
|
||||
+++ b/usr/bin/jupiter-biosupdate
|
||||
@@ -187,6 +187,10 @@ fi
|
||||
@@ -187,6 +187,14 @@ fi
|
||||
# Die early if inhibited
|
||||
[[ ! -f $BIOS_INHIBIT_FILE ]] || die "Bios updates inhibited, no action ($BIOS_INHIBIT_FILE)"
|
||||
|
||||
+if ! /usr/libexec/hwsupport/valve-hardware; then
|
||||
+ finish 0 no "No Valve Hardware detected"
|
||||
+fi
|
||||
+
|
||||
+if ! systemctl is-enabled jupiter-biosupdate.service; then
|
||||
+ finish 0 no "Bios updates inhibited, no action (Service disabled)"
|
||||
+fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user