]> git.donarmstrong.com Git - neurodebian.git/commitdiff
tentative hook to load vfat module as well
authorYaroslav Halchenko <debian@onerussian.com>
Fri, 23 Sep 2011 16:51:22 +0000 (12:51 -0400)
committerYaroslav Halchenko <debian@onerussian.com>
Fri, 23 Sep 2011 16:51:22 +0000 (12:51 -0400)
live/config/chroot_local-hooks/all_chroot_linux-modules.sh [new file with mode: 0755]

diff --git a/live/config/chroot_local-hooks/all_chroot_linux-modules.sh b/live/config/chroot_local-hooks/all_chroot_linux-modules.sh
new file mode 100755 (executable)
index 0000000..f01c9e9
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# This is a hook for live-build(7) to add entries to /etc/modules.
+# To enable it, copy or symlink this hook into your config/chroot_local-hooks
+# directory.
+
+MODULES="vfat"
+
+for MODULE in ${MODULES}
+do
+       if ! grep -qs /etc/modules ${MODULE}
+       then
+               echo ${MODULE} >> /etc/modules
+       fi
+done