ath9k-hmac/backports-3.12.8-1/scripts/uninstall.sh
2016-09-26 15:44:25 +02:00

18 lines
306 B
Bash
Executable File

#!/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