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/ipw2100.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'examples/hooks/ipw2100.sh') 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) -- cgit v1.2.3