diff options
author | Michael Lauer <mickey@vanille-media.de> | 2008-03-26 10:03:48 +0000 |
---|---|---|
committer | Michael Lauer <mickey@vanille-media.de> | 2008-03-26 10:03:48 +0000 |
commit | 0ba1b284a1d780c7c2948cb994e53d607d124611 (patch) | |
tree | 9692bf60f9b7c79d1f85156d59d2c7d65f719af4 /packages/slugos-init/files/modulefunctions | |
parent | 64b5ffe862c4eb0dded66fa088003a76b38780bc (diff) | |
parent | 47cd69d831acf1aeafc95f40ec5deb1db077c592 (diff) |
merge of '6fb81274c29757880096f072fe570dfb0c670634'
and '98e87503fb19f28515c87f377b4b0723e00bc635'
Diffstat (limited to 'packages/slugos-init/files/modulefunctions')
-rw-r--r-- | packages/slugos-init/files/modulefunctions | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/packages/slugos-init/files/modulefunctions b/packages/slugos-init/files/modulefunctions index 82fd7681af..02bfccb500 100644 --- a/packages/slugos-init/files/modulefunctions +++ b/packages/slugos-init/files/modulefunctions @@ -6,29 +6,29 @@ loaddiskmods(){ case "$(machine)" in - nslu2) - modprobe ehci-hcd - modprobe ohci-hcd + nslu2) + [ -d /sys/module/ehci_hcd ] || modprobe ehci-hcd + [ -d /sys/module/ohci_hcd ] || modprobe ohci-hcd + ;; + nas100d) + [ -d /sys/module/ehci_hcd ] || modprobe ehci-hcd + [ -d /sys/module/uhci_hcd ] || modprobe uhci-hcd + [ -d /sys/module/pata_artop ] || modprobe pata-artop + ;; + dsmg600) + [ -d /sys/module/ehci_hcd ] || modprobe ehci-hcd + [ -d /sys/module/uhci_hcd ] || modprobe uhci-hcd + [ -d /sys/module/pata_artop ] || modprobe pata-artop ;; - nas100d) - modprobe ehci-hcd - modprobe uhci-hcd - modprobe pata-artop - ;; - dsmg600) - modprobe ehci-hcd - modprobe uhci-hcd - modprobe pata-artop - ;; esac } loadnetmods(){ case "$(machine)" in - dsmg600) - modprobe via-velocity - ;; + dsmg600) + [ -d /sys/module/via_velocity ] || modprobe via-velocity + ;; *) true ;; @@ -36,7 +36,7 @@ loadnetmods(){ } loadnfsmods(){ - modprobe nfs + [ -d /sys/module/nfs ] || modprobe nfs } loadmiscmods(){ |