blob: 91a0fe6235e81bdbadb8185dfc9c2be7dd8cadd7 [file] [log] [blame]
#!/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