summaryrefslogtreecommitdiff
path: root/examples/hooks/rt2x00.sh
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hooks/rt2x00.sh')
-rwxr-xr-xexamples/hooks/rt2x00.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/examples/hooks/rt2x00.sh b/examples/hooks/rt2x00.sh
index d94b4e2..65f2ef6 100755
--- a/examples/hooks/rt2x00.sh
+++ b/examples/hooks/rt2x00.sh
@@ -8,7 +8,14 @@
# Building kernel modules
which module-assistant || apt-get install --yes module-assistant
module-assistant update
-module-assistant auto-install rt2x00-source
+
+for KERNEL in /boot/vmlinuz-*
+do
+ VERSION="$(basename ${KERNEL} | sed -e 's|vmlinuz-||')"
+
+ module-assistant --non-inter --quiet auto-install rt2x00-source -l ${VERSION}
+done
+
module-assistant clean rt2x00-source
# Installing firmware for rt73usb