.PHONY: modules_install
modules_install: install
+.PHONY: uninstall
+uninstall:
+ @./scripts/uninstall.sh
+ @/sbin/depmod -a
+ @./scripts/update-initramfs.sh $(KLIB)
+ @echo
+ @echo Your backported driver modules should be uninstalled now.
+ @echo Reboot.
+ @echo
+
.PHONY: clean
clean:
@$(MAKE) -f Makefile.build clean
set -e
-function mod_filename()
-{
- which modinfo > /dev/null 2>&1
- if [[ $? -eq 0 ]]; then
- MOD_QUERY="modinfo -F filename"
- else
- MOD_QUERY="modprobe -l"
- fi
- mod_path="$($MOD_QUERY $1 | tail -1)"
- echo $(basename "$mod_path")
-}
+source ./scripts/mod_helpers.sh
if test "$(mod_filename mac80211)" = "mac80211.ko.gz" ; then
for driver in $(find "$1" -type f -name *.ko); do
+ echo COMPRESS $driver
gzip -9 $driver
done
fi
--- /dev/null
+function mod_filename()
+{
+ which modinfo > /dev/null 2>&1
+ if [[ $? -eq 0 ]]; then
+ MOD_QUERY="modinfo -F filename"
+ else
+ MOD_QUERY="modprobe -l"
+ fi
+ mod_path="$($MOD_QUERY $1 | tail -1)"
+ echo $(basename "$mod_path")
+}
--- /dev/null
+#!/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