From dbcae19129fb310cef3330d9e8342602e2845589 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 11 Nov 2009 17:25:50 +0100 Subject: Renaming example hooks and prefixing them with distribution name. --- examples/hooks/all_chroot_linux-modules.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 examples/hooks/all_chroot_linux-modules.sh (limited to 'examples/hooks/all_chroot_linux-modules.sh') diff --git a/examples/hooks/all_chroot_linux-modules.sh b/examples/hooks/all_chroot_linux-modules.sh new file mode 100755 index 000000000..159e9bc52 --- /dev/null +++ b/examples/hooks/all_chroot_linux-modules.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +# This is a hook for live-helper(7) to add entries to /etc/modules. +# To enable it, copy or symlink this hook into your config/chroot_local-hooks +# directory. + +MODULES="" + +for MODULE in ${MODULES} +do + if ! grep -qs /etc/modules ${MODULE} + then + echo ${MODULE} >> /etc/modules + fi +done -- cgit v1.2.3