install on first boot

This commit is contained in:
Peter D. Gray 2023-12-08 09:29:55 -05:00
parent 5ff976793e
commit 71b46ea44e
No known key found for this signature in database
GPG Key ID: A2DCD558C2BE5D7C

View File

@ -295,6 +295,15 @@ class GPUAccess:
return v
def upgrade_if_needed(self):
# called at boot time
from gpu_binary import VERSION
v = self.get_version()
if v == VERSION:
# correct version in place and running -- do nothing.
return
self.upgrade()
async def reflash_gpu_ux(self):
# Available from Advanced > Danger Zone > Reflash GPU
from ux import ux_show_story