From 475b7e0fc914206e21427c662a20594cf65a5cf9 Mon Sep 17 00:00:00 2001 From: Wiktor Mowinski Date: Fri, 28 Mar 2025 13:59:27 +0100 Subject: [PATCH] src/variable_command.sh: update command Signed-off-by: Wiktor Mowinski --- src/variable_command.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/variable_command.sh b/src/variable_command.sh index 5a08dea..f795947 100644 --- a/src/variable_command.sh +++ b/src/variable_command.sh @@ -15,7 +15,7 @@ LIST_SUPPORTED="${args[--list-supported]}" supported_variables=$(echo "LockBios NetworkBoot UsbDriverStack SmmBwp"\ "Ps2Controller BootManagerEnabled PCIeResizeableBarsEnabled"\ "EnableCamera EnableWifiBt SerialRedirection SerialRedirection2"\ - "MeMode FanCurveOption CpuThrottlingThreshold DGPUEnabled") + "MeMode FanCurveOption CpuThrottlingThreshold DGPUState") typeof() { @@ -44,8 +44,8 @@ typeof() CpuThrottlingThreshold) echo "uint8" ;; - DGPUEnabled) - echo "enum_dgpuenabled" + DGPUState) + echo "enum_dgpustate" ;; *) echo "unknown" @@ -94,7 +94,7 @@ valueof() exit 18 fi ;; - enum_dgpuenabled) + enum_dgpustate) _result="$(${SMMSTORETOOL} "${DASHARO_ROM}" get -g dasharo -n $1 -t uint8)" error_check "Variable store was not initialized yet. You need to set some variable first via --set option." 17 case $_result in @@ -128,7 +128,7 @@ acceptedvaluesfor() enum_fancurve) echo "Silent / Performance" ;; - enum_dgpuenabled) + enum_dgpustate) echo "iGPU Only / NVIDIA Optimus / dGPU Only" ;; uint8) @@ -203,7 +203,7 @@ list_variables() enum_bool \ |enum_memode \ |enum_fancurve \ - |enum_dgpuenabled \ + |enum_dgpustate \ |uint8) echo -e "$var\t$(valueof $var)\t$(acceptedvaluesfor $var)" ;;