diff options
author | Daniel Baumann <daniel@debian.org> | 2009-01-09 16:50:21 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:09:36 +0100 |
commit | b3d13b21e1ef6d58a94af9d67cb66a3fde8a3c7d (patch) | |
tree | e096b9f68207d0650e2fb3422d65ee857b6dc5ef /examples | |
parent | c83edb91347b50275893b71ec307b8f69dc8e3db (diff) | |
download | vyos-live-build-b3d13b21e1ef6d58a94af9d67cb66a3fde8a3c7d.tar.gz vyos-live-build-b3d13b21e1ef6d58a94af9d67cb66a3fde8a3c7d.zip |
Adding sample hook to add custom /etc/modules entries.
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/hooks/modules.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/hooks/modules.sh b/examples/hooks/modules.sh new file mode 100755 index 000000000..159e9bc52 --- /dev/null +++ b/examples/hooks/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 |