mirror of
https://github.com/ublue-os/bazzite.git
synced 2024-12-29 03:20:57 +00:00
fix: Properly handle asus-nvidia images in enable-supergfxctl
This commit is contained in:
parent
b4b18bdcbe
commit
53398e92f3
@ -72,7 +72,7 @@ enable-supergfxctl:
|
||||
#!/usr/bin/env bash
|
||||
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
|
||||
IMAGE_FLAVOR=$(jq -r '."image-flavor"' < $IMAGE_INFO)
|
||||
if [[ ${IMAGE_FLAVOR} == 'nvidia' ]]; then
|
||||
if [[ "$IMAGE_FLAVOR" =~ "nvidia" ]]; then
|
||||
systemctl enable --now supergfxd.service
|
||||
else
|
||||
echo "This requires an Nvidia image."
|
||||
|
Loading…
Reference in New Issue
Block a user