summaryrefslogtreecommitdiff
path: root/examples/hooks/ipw3945.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-04-10 12:43:50 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:32 +0100
commitd57a58d781254e44a55b8e1885ee02d575b2c665 (patch)
tree28cf89f33b5075ea5669cce47ace6b12120786e7 /examples/hooks/ipw3945.sh
parentd795c6c8545a1b6caf6e31db93526e45f76f0f64 (diff)
downloadvyos-live-build-d57a58d781254e44a55b8e1885ee02d575b2c665.tar.gz
vyos-live-build-d57a58d781254e44a55b8e1885ee02d575b2c665.zip
Updating oot example hooks to loop through all install kernel flavours.
Diffstat (limited to 'examples/hooks/ipw3945.sh')
-rwxr-xr-xexamples/hooks/ipw3945.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/examples/hooks/ipw3945.sh b/examples/hooks/ipw3945.sh
index 18a977b09..4e1ae1c42 100755
--- a/examples/hooks/ipw3945.sh
+++ b/examples/hooks/ipw3945.sh
@@ -5,13 +5,18 @@
#
# Note: This hook requires packages from the contrib and non-free section. Make
# sure you enabled it in your configuration.
-#
-# FIXME: it runs in interactive mode
# Building kernel module
which module-assistant || apt-get install --yes module-assistant
module-assistant update
-module-assistant auto-install ipw3945
+
+for KERNEL in /boot/vmlinuz-*
+do
+ VERSION="$(basename ${KERNEL} | sed -e 's|vmlinuz-||')"
+
+ module-assistant --non-inter --quiet auto-install ipw3945 -l ${VERSION}
+done
+
module-assistant clean ipw3945
# Installing additional stuff