summaryrefslogtreecommitdiff
path: root/examples/hooks
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
parentd795c6c8545a1b6caf6e31db93526e45f76f0f64 (diff)
downloadlive-build-d57a58d781254e44a55b8e1885ee02d575b2c665.zip
live-build-d57a58d781254e44a55b8e1885ee02d575b2c665.tar.gz
Updating oot example hooks to loop through all install kernel flavours.
Diffstat (limited to 'examples/hooks')
-rwxr-xr-xexamples/hooks/aufs.sh9
-rwxr-xr-xexamples/hooks/ipw2100.sh9
-rwxr-xr-xexamples/hooks/ipw2200.sh11
-rwxr-xr-xexamples/hooks/ipw3945.sh11
-rwxr-xr-xexamples/hooks/madwifi.sh11
-rwxr-xr-xexamples/hooks/nvidia-legacy.sh11
-rwxr-xr-xexamples/hooks/rt2570.sh11
-rwxr-xr-xexamples/hooks/rt2x00.sh9
-rwxr-xr-xexamples/hooks/squashfs.sh9
-rwxr-xr-xexamples/hooks/unionfs.sh9
10 files changed, 82 insertions, 18 deletions
diff --git a/examples/hooks/aufs.sh b/examples/hooks/aufs.sh
index ca637af..f0b02c6 100755
--- a/examples/hooks/aufs.sh
+++ b/examples/hooks/aufs.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 aufs
+
+for KERNEL in /boot/vmlinuz-*
+do
+ VERSION="$(basename ${KERNEL} | sed -e 's|vmlinuz-||')"
+
+ module-assistant --non-inter --quiet auto-install aufs -l ${VERSION}
+done
+
module-assistant clean aufs
diff --git a/examples/hooks/ipw2100.sh b/examples/hooks/ipw2100.sh
index 6fc3669..e23c932 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)
diff --git a/examples/hooks/ipw2200.sh b/examples/hooks/ipw2200.sh
index 47281a4..0d91fa8 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)
diff --git a/examples/hooks/ipw3945.sh b/examples/hooks/ipw3945.sh
index 18a977b..4e1ae1c 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
diff --git a/examples/hooks/madwifi.sh b/examples/hooks/madwifi.sh
index 178de88..bc5d072 100755
--- a/examples/hooks/madwifi.sh
+++ b/examples/hooks/madwifi.sh
@@ -5,13 +5,18 @@
#
# Note: This hook requires packages from the contrib 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 madwifi
+
+for KERNEL in /boot/vmlinuz-*
+do
+ VERSION="$(basename ${KERNEL} | sed -e 's|vmlinuz-||')"
+
+ module-assistant --non-inter --quiet auto-install madwifi -l ${VERSION}
+done
+
module-assistant clean madwifi
# Installing additional stuff
diff --git a/examples/hooks/nvidia-legacy.sh b/examples/hooks/nvidia-legacy.sh
index 0dc3c6e..f4ce544 100755
--- a/examples/hooks/nvidia-legacy.sh
+++ b/examples/hooks/nvidia-legacy.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 nvidia-kernel-legacy drivers
# To enable it, copy this hook into your config/chroot_localhooks directory.
#
# Note: This hook requires packages from the non-free section. Make sure you
@@ -9,7 +9,14 @@
# Building kernel module
which module-assistant || apt-get install --yes module-assistant nvidia-kernel-common
module-assistant update
-module-assistant --non-inter --quiet auto-install nvidia-kernel-legacy
+
+for KERNEL in /boot/vmlinuz-*
+do
+ VERSION="$(basename ${KERNEL} | sed -e 's|vmlinuz-||')"
+
+ module-assistant --non-inter --quiet auto-install nvidia-kernel-legacy -l ${VERSION}
+done
+
module-assistant clean nvidia-kernel-legacy
# Installing additional stuff
diff --git a/examples/hooks/rt2570.sh b/examples/hooks/rt2570.sh
index da4d237..90c3118 100755
--- a/examples/hooks/rt2570.sh
+++ b/examples/hooks/rt2570.sh
@@ -2,10 +2,15 @@
# This is a hook for live-helper(7) to install ralink rt2570 drivers
# To enable it, copy this hook into your config/chroot_local-hooks directory.
-#
-# FIXME: it runs in interactive mode
which module-assistant || apt-get install --yes module-assistant
module-assistant update
-module-assistant auto-install rt2570-source
+
+for KERNEL in /boot/vmlinuz-*
+do
+ VERSION="$(basename ${KERNEL} | sed -e 's|vmlinuz-||')"
+
+ module-assistant --non-inter --quiet auto-install rt2570-source -l ${VERSION}
+done
+
module-assistant clean rt2570-source
diff --git a/examples/hooks/rt2x00.sh b/examples/hooks/rt2x00.sh
index d94b4e2..65f2ef6 100755
--- a/examples/hooks/rt2x00.sh
+++ b/examples/hooks/rt2x00.sh
@@ -8,7 +8,14 @@
# Building kernel modules
which module-assistant || apt-get install --yes module-assistant
module-assistant update
-module-assistant auto-install rt2x00-source
+
+for KERNEL in /boot/vmlinuz-*
+do
+ VERSION="$(basename ${KERNEL} | sed -e 's|vmlinuz-||')"
+
+ module-assistant --non-inter --quiet auto-install rt2x00-source -l ${VERSION}
+done
+
module-assistant clean rt2x00-source
# Installing firmware for rt73usb
diff --git a/examples/hooks/squashfs.sh b/examples/hooks/squashfs.sh
index 5be16e6..f258f88 100755
--- a/examples/hooks/squashfs.sh
+++ b/examples/hooks/squashfs.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 squashfs
+
+for KERNEL in /boot/vmlinuz-*
+do
+ VERSION="$(basename ${KERNEL} | sed -e 's|vmlinuz-||')"
+
+ module-assistant --non-inter --quiet auto-install squashfs -l ${VERSION}
+done
+
module-assistant clean squashfs
diff --git a/examples/hooks/unionfs.sh b/examples/hooks/unionfs.sh
index bbf210a..2cf47b3 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