diff options
author | Johannes Berg <johannes.berg@intel.com> | 2018-10-12 13:01:46 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2018-10-12 13:01:46 +0200 |
commit | 416b29baf5eb3960b9b720c6fbb5b3588f8234e8 (patch) | |
tree | 038edc30a88e8f576b34d4e58720296d120981ae | |
parent | ff6746638cf14d7b812ccb6bdfd4b91e6e9c5c79 (diff) |
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 <johannes.berg@intel.com>
-rwxr-xr-x | backport/scripts/uninstall.sh | 4 |
1 files changed, 3 insertions, 1 deletions
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 |