From 416b29baf5eb3960b9b720c6fbb5b3588f8234e8 Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Fri, 12 Oct 2018 13:01:46 +0200 Subject: backports: support xz compression in uninstall Support xz compression in uninstall. Also use compat.ko instead of mac80211.ko to detect this, as compat is always compiled and mac80211 may not be. Signed-off-by: Johannes Berg --- backport/scripts/uninstall.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backport/scripts/uninstall.sh b/backport/scripts/uninstall.sh index b46d3fe7..91a0fe62 100755 --- a/backport/scripts/uninstall.sh +++ b/backport/scripts/uninstall.sh @@ -4,8 +4,10 @@ set -e source ./scripts/mod_helpers.sh -if test "$(mod_filename mac80211)" = "mac80211.ko.gz" ; then +if test "$(mod_filename compat)" = "compat.ko.gz" ; then compr=".gz" +elif test "$(mod_filename compat)" = "compat.ko.xz" ; then + compr=".xz" else compr="" fi -- cgit v1.2.3