diff options
author | Dominik Sliwa <dominik.sliwa@toradex.com> | 2018-09-14 10:41:12 +0200 |
---|---|---|
committer | Dominik Sliwa <dominik.sliwa@toradex.com> | 2018-09-14 10:41:12 +0200 |
commit | 6142e8731c3e5b9c9f96d9af83052b9787604b39 (patch) | |
tree | 45b17840142b10874bf8974a74152eb3f9021e82 /scripts/uninstall.sh |
initial commit
Generated againts 4.18 kernel source with
git backports 0795d050c62e04c7c4fd7fcb554756e6adb4ec64
Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com>
Diffstat (limited to 'scripts/uninstall.sh')
-rwxr-xr-x | scripts/uninstall.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/uninstall.sh b/scripts/uninstall.sh new file mode 100755 index 0000000..b46d3fe --- /dev/null +++ b/scripts/uninstall.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +set -e + +source ./scripts/mod_helpers.sh + +if test "$(mod_filename mac80211)" = "mac80211.ko.gz" ; then + compr=".gz" +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 |