diff options
Diffstat (limited to 'hooks')
-rw-r--r-- | hooks/autodetect | 9 | ||||
-rw-r--r-- | hooks/ide | 14 | ||||
-rw-r--r-- | hooks/raid | 12 |
3 files changed, 11 insertions, 24 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 +} @@ -3,19 +3,7 @@ run_hook () { if [ -e /proc/ide ]; then msg -n "Loading ide modules..." - /bin/modprobe -q ide-generic >/dev/null 2>&1 - for d in /proc/ide/*; do - unit=${d#/proc/ide/} - if [ -e "${d}/media" -a ! -d "/sys/block/${unit}" ]; then - read m < "${d}/media" - case "${m}" in - disk) /bin/modprobe -q ide-disk >/dev/null 2>&1;; - cdrom) /bin/modprobe -q ide-cd >/dev/null 2>&1;; - tape) /bin/modprobe -q ide-tape >/dev/null 2>&1;; - floppy) /bin/modprobe -q ide-floppy >/dev/null 2>&1;; - esac - fi - done + /bin/modprobe -q -a $(/bin/cat /sys/bus/ide/devices/*/modalias) >/dev/null 2>&1 msg "done" else msg "No ide devices detected..." @@ -1,15 +1,5 @@ # vim: set ft=sh: - -# kinit handles md/raid assembly -# we just need modules - -install () -{ - MODULES=" $(find "${MODULEDIR}/kernel/drivers/md/" -name *.ko) md raid0 raid1 raid2 raid5 raid6" - BINARIES="" - FILES="" -} - +# kinit handles md/raid assembly we just need modules run_hook () { #TODO |