summaryrefslogtreecommitdiff
path: root/examples/hooks/modules.sh
blob: 159e9bc52d2fcd2e6245b14cdb34b6c8369b8951 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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