diff options
author | Rodrigo Vivi <rodrigo.vivi@gmail.com> | 2008-03-27 18:45:00 +0000 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@gmail.com> | 2008-03-27 18:45:00 +0000 |
commit | bab0bc1011c17ac35ac7499b3db23fa85419e05f (patch) | |
tree | 26fe87bc48e130d6f1b1a0c1c990622c1c48d63c /packages/slugos-init/files | |
parent | e3ba7f3f4a1345008ca97eab8663150fb00b10da (diff) | |
parent | 6775017f8db3583d4166f48f937bc339b97d0b35 (diff) |
merge of '487f86d7da4356e5d8c6832b7ff5f0ee9ab8c293'
and 'd1dfc5df9769c50ec5328454ab737f091f6c573f'
Diffstat (limited to 'packages/slugos-init/files')
-rw-r--r-- | packages/slugos-init/files/modulefunctions | 34 | ||||
-rw-r--r-- | packages/slugos-init/files/turnup | 6 |
2 files changed, 17 insertions, 23 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(){ diff --git a/packages/slugos-init/files/turnup b/packages/slugos-init/files/turnup index 8d4c3f0f93..c6220077a5 100644 --- a/packages/slugos-init/files/turnup +++ b/packages/slugos-init/files/turnup @@ -490,12 +490,6 @@ boot_rootfs() { return 1 };; *) { echo '#!/bin/sh' -# echo 'modprobe ehci-hcd' -# echo 'modprobe ohci-hcd' -# echo 'modprobe sd_mod' -# echo 'modprobe usb-storage' -# echo 'modprobe ext3' -# echo 'sleep 5' echo 'leds beep' test "$sleep" -gt 0 && echo -n "sleep='$sleep' " test -n "$uuid" && echo -n "UUID='$uuid' " |