From d57a58d781254e44a55b8e1885ee02d575b2c665 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 10 Apr 2008 12:43:50 +0200 Subject: Updating oot example hooks to loop through all install kernel flavours. --- examples/hooks/ipw2200.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'examples/hooks/ipw2200.sh') diff --git a/examples/hooks/ipw2200.sh b/examples/hooks/ipw2200.sh index 47281a422..0d91fa847 100755 --- a/examples/hooks/ipw2200.sh +++ b/examples/hooks/ipw2200.sh @@ -1,6 +1,6 @@ #!/bin/sh -# This is a hook for live-helper(7) to install nvidia-legacy drivers +# This is a hook for live-helper(7) to install ipw2200 drivers # To enable it, copy this hook into your config/chroot_local-hooks directory. # # Note: This hook requires packages from the contrib section. Make sure you enabled @@ -9,7 +9,14 @@ # Building kernel mdoule which module-assistant || apt-get install --yes module-assistant module-assistant update -module-assistant --non-inter --quiet auto-install ipw2200 + +for KERNEL in /boot/vmlinuz-* +do + VERSION="$(basename ${KERNEL} | sed -e 's|vmlinuz-||')" + + module-assistant --non-inter --quiet auto-install ipw2200 -l ${VERSION} +done + module-assistant clean ipw2200 # Installing firmware (http://ipw2200.sourceforge.net/firmware.php) -- cgit v1.2.3