Skip to content

Commit

Permalink
fix: Add check for valve hardware in jupiter-biosupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Dec 18, 2024
1 parent 1596901 commit 5566355
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec_files/jupiter-hw-support/biosupdate.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5566355

Please sign in to comment.