diff options
author | Tobias Powalowski <tpowa@archlinux.org> | 2005-11-26 15:55:36 +0000 |
---|---|---|
committer | Tobias Powalowski <tpowa@archlinux.org> | 2005-11-26 15:55:36 +0000 |
commit | 66779d909c3a08f2c3fa0811de12f0e3b5c54bc0 (patch) | |
tree | 0b8855948f44bf4184cecfda3043381e3053d711 /hwdetect | |
parent | b087f41b86014ba5dfc0b23ea79d6897573fb562 (diff) |
'upgpkg: fixed non ide systems, fixed usb modules'
Diffstat (limited to 'hwdetect')
-rwxr-xr-x | hwdetect | 24 |
1 files changed, 16 insertions, 8 deletions
@@ -86,14 +86,16 @@ for i in `find /sys -name "id*" | grep pnp`; do done # IDE disks/cdroms/floppy/tape -for i in $(cat `find /proc/ide -name "media"`); do - case $i in - cdrom) modprobe -i --show-depends ide-cd >> /tmp/modules-plain 2>/dev/null ;; - floppy) modprobe -i --show-depends ide-floppy >> /tmp/modules-plain 2>/dev/null ;; - disk) modprobe -i --show-depends ide-disk >> /tmp/modules-plain 2>/dev/null ;; - tape) modprobe -i --show-depends ide-tape >> /tmp/modules-plain 2>/dev/null ;; - esac -done +if [ -d /proc/ide ]; then + for i in $(cat `find /proc/ide -name "media"`); do + case $i in + cdrom) modprobe -i --show-depends ide-cd >> /tmp/modules-plain 2>/dev/null ;; + floppy) modprobe -i --show-depends ide-floppy >> /tmp/modules-plain 2>/dev/null ;; + disk) modprobe -i --show-depends ide-disk >> /tmp/modules-plain 2>/dev/null ;; + tape) modprobe -i --show-depends ide-tape >> /tmp/modules-plain 2>/dev/null ;; + esac + done +fi # SCSI disks/cdroms/tapes/generic devices for i in $(cat `find /sys/devices -name "type"`); do @@ -127,6 +129,12 @@ if [ "`grep 'snd-seq' /tmp/modules-plain`" ]; then modprobe -i --show-depends snd-seq-oss >> /tmp/modules-plain 2>/dev/null fi +# USB modules +if [ "`grep 'usb/' /tmp/modules-plain`" ]; then + modprobe -i --show-depends usbhid >> /tmp/modules-plain 2>/dev/null + modprobe -i --show-depends usb-storage >> /tmp/modules-plain 2>/dev/null + modprobe -i --show-depends usblp >> /tmp/modules-plain 2>/dev/null +fi sort -u /tmp/modules-plain >> /tmp/modules-stripped # OTHER modules loading first for speedup! |