]> git.donarmstrong.com Git - neurodebian.git/blobdiff - live/config/chroot_local-hooks/all_chroot_linux-modules.sh
tentative hook to load vfat module as well
[neurodebian.git] / live / config / chroot_local-hooks / all_chroot_linux-modules.sh
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