summaryrefslogtreecommitdiffstats
path: root/hooks/autodetect
diff options
context:
space:
mode:
Diffstat (limited to 'hooks/autodetect')
-rw-r--r--hooks/autodetect9
1 files changed, 9 insertions, 0 deletions
diff --git a/hooks/autodetect b/hooks/autodetect
new file mode 100644
index 0000000..bffdff3
--- /dev/null
+++ b/hooks/autodetect
@@ -0,0 +1,9 @@
+# vim: set ft=sh:
+run_hook ()
+{
+ if [ -e /modules ]; then
+ while read mod; do
+ /bin/modprobe -q $mod >/dev/null 2>&1
+ done < /modules
+ fi
+}