blob: 91a0fe6235e81bdbadb8185dfc9c2be7dd8cadd7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
|