~asac/live-build/virtual-hdd-mtab-hack

« back to all changes in this revision

Viewing changes to examples/hooks/all_chroot_linux-modules.sh

  • Committer: Daniel Baumann
  • Date: 2009-11-22 13:38:00 UTC
  • Revision ID: git-v1:a62f12110b19a52a58d7eae871012202cfa16055
Renaming categories to archive areas (Closes: #519690).

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