diff options
author | Dominik Sliwa <dominik.sliwa@toradex.com> | 2019-03-04 12:01:54 +0100 |
---|---|---|
committer | Dominik Sliwa <dominik.sliwa@toradex.com> | 2019-03-04 12:01:54 +0100 |
commit | 348fa3f6871f56a37dcd16c99ca98118c6d79a38 (patch) | |
tree | 6fcae7785bae4ffb838fd6549f7d01ba6abf0763 /scripts/uninstall.sh |
Backports v4.19.24
Backports generated by toradex backports 515a1fa55cda2b1d952872e1786857481bd54fcc
against mainline kernel tag v4.19.24
Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com>
Diffstat (limited to 'scripts/uninstall.sh')
-rwxr-xr-x | scripts/uninstall.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/uninstall.sh b/scripts/uninstall.sh new file mode 100755 index 0000000..91a0fe6 --- /dev/null +++ b/scripts/uninstall.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +set -e + +source ./scripts/mod_helpers.sh + +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 + +for driver in $(find ${BACKPORT_DIR} -type f -name *.ko); do + mod_name=${driver/${BACKPORT_DIR}/${KLIB}${KMODDIR}}${compr} + echo " uninstall" $mod_name + rm -f $mod_name +done |