diff options
Diffstat (limited to 'examples/hooks/ipw2100.sh')
-rwxr-xr-x | examples/hooks/ipw2100.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/examples/hooks/ipw2100.sh b/examples/hooks/ipw2100.sh index 6fc3669ec..e23c932c3 100755 --- a/examples/hooks/ipw2100.sh +++ b/examples/hooks/ipw2100.sh @@ -9,7 +9,14 @@ # Building kernel module which module-assistant || apt-get install --yes module-assistant module-assistant update -module-assistant --non-inter --quiet auto-install ipw2100 + +for KERNEL in /boot/vmlinuz-* +do + VERSION="$(basename ${KERNEL} | sed -e 's|vmlinuz-||')" + + module-assistant --non-inter --quiet auto-install ipw2100 -l ${VERSION} +done + module-assistant clean ipw2100 # Installing firmware (http://ipw2100.sourceforge.net/firmware.php) |