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/unionfs.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'examples/hooks/unionfs.sh') diff --git a/examples/hooks/unionfs.sh b/examples/hooks/unionfs.sh index bbf210a7a..2cf47b30a 100755 --- a/examples/hooks/unionfs.sh +++ b/examples/hooks/unionfs.sh @@ -9,5 +9,12 @@ # Building kernel module which module-assistant || apt-get install --yes module-assistant module-assistant update -module-assistant --non-inter --quiet auto-install unionfs + +for KERNEL in /boot/vmlinuz-* +do + VERSION="$(basename ${KERNEL} | sed -e 's|vmlinuz-||')" + + module-assistant --non-inter --quiet auto-install unionfs -l ${VERSION} +done + module-assistant clean unionfs -- cgit v1.2.3