~chessy/live-build/live-helper.chessy

« back to all changes in this revision

Viewing changes to examples/hooks/modules.sh

  • Committer: Cody A.W. Somerville
  • Date: 2009-12-17 15:47:33 UTC
  • mfrom: (990.1.113)
  • Revision ID: cody.somerville@canonical.com-20091217154733-s399e2926ouoj5j6
Merge in live-helper 1.0.6-1 from Debian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
# This is a hook for live-helper(7) to add entries to /etc/modules.
4
 
# To enable it, copy or symlink this hook into your config/chroot_local-hooks
5
 
# directory.
6
 
 
7
 
MODULES=""
8
 
 
9
 
for MODULE in ${MODULES}
10
 
do
11
 
        if ! grep -qs /etc/modules ${MODULE}
12
 
        then
13
 
                echo ${MODULE} >> /etc/modules
14
 
        fi
15
 
done