Skip to content

Commit

Permalink
Adjustments for SUSE output in RPM scriptlets
Browse files Browse the repository at this point in the history
  • Loading branch information
scaronni committed Jan 30, 2025
1 parent 38131a2 commit fdd5c0a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dkms.in
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ invoke_command()
fi

if [ -n "$progresspid" ]; then
kill "$progresspid" >/dev/null 2>&1
kill -9 "$progresspid" >/dev/null 2>&1
wait "$progresspid" 2>/dev/null
fi

Expand Down Expand Up @@ -333,9 +333,9 @@ set_module_suffix()
# $1 = the kernel to base the module_suffix on
kernel_test="${1:-$(uname -r)}"
module_uncompressed_suffix=".ko"
find $install_tree/$kernel_test/ -name "*.ko.gz" | grep -q . && module_compressed_suffix=".gz"
find $install_tree/$kernel_test/ -name "*.ko.xz" | grep -q . && module_compressed_suffix=".xz"
find $install_tree/$kernel_test/ -name "*.ko.zst" | grep -q . && module_compressed_suffix=".zst"
find $install_tree/$kernel_test/ -name "*.ko.gz" 2>/dev/null | grep -q . && module_compressed_suffix=".gz"
find $install_tree/$kernel_test/ -name "*.ko.xz" 2>/dev/null | grep -q . && module_compressed_suffix=".xz"
find $install_tree/$kernel_test/ -name "*.ko.zst" 2>/dev/null | grep -q . && module_compressed_suffix=".zst"
module_suffix="$module_uncompressed_suffix$module_compressed_suffix"
}

Expand Down

0 comments on commit fdd5c0a

Please sign in to comment.