summaryrefslogtreecommitdiff
path: root/backport/scripts/uninstall.sh
blob: 99f74ab1a0a71f639a1df839a74e12a188f4361e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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_PWD} -type f -name *.ko); do
	mod_name=${KLIB}${KMODDIR}/${driver}${compr}
	echo "  uninstall" $mod_name
	rm -f $mod_name
done