From 170acaa069dcacdc01dc916f77b608ab8da3b7c5 Mon Sep 17 00:00:00 2001 From: Patrick Plenefisch Date: Mon, 4 Aug 2025 13:20:46 -0400 Subject: [PATCH] Debian dkms uses sh = dash, which doesn't support hex number comparison --- dkms.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dkms.conf b/dkms.conf index 2220cad..45f1318 100644 --- a/dkms.conf +++ b/dkms.conf @@ -16,7 +16,8 @@ family_hex=$(printf "0x%x" "$family") model_hex=$(printf "0x%x" "$model") # Perform the comparison -if [ "$family_hex" = "0x19" ] && [ "$model_hex" -ge "0x00" ] && [ "$model_hex" -le "0x1f" ]; then +# sh can only compare decimal numbers, not hex, so use 31 instead of 0x1f for the model +if [ "$family_hex" = "0x19" ] && [ "$model" -ge "0" ] && [ "$model" -le "31" ]; then BUILT_MODULE_NAME[1]="amd_hsmp" else BUILT_MODULE_NAME[1]="hsmp_acpi"