From 9149b7013ea36bdad26cc1e6b8b2671b3e47f329 Mon Sep 17 00:00:00 2001 From: Michael-Luke Jones Date: Wed, 27 Sep 2006 22:35:50 +0000 Subject: slugos-init: first stages of fixing disk boot * Add module loading in disk and ram bootdisks * Should eventually be consolidated - still planning this --- packages/slugos-init/files/boot/disk | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'packages/slugos-init/files/boot/disk') diff --git a/packages/slugos-init/files/boot/disk b/packages/slugos-init/files/boot/disk index 6dd7788197..02b8ee82cf 100644 --- a/packages/slugos-init/files/boot/disk +++ b/packages/slugos-init/files/boot/disk @@ -11,6 +11,19 @@ export PATH=/sbin:/bin:/usr/sbin:/usr/bin # leds boot system # +# Load the required SCSI and USB modules 'by hand' +insmod /lib/modules/`uname -r`/kernel/drivers/scsi/scsi_mod.ko +insmod /lib/modules/`uname -r`/kernel/drivers/scsi/sd_mod.ko +insmod /lib/modules/`uname -r`/kernel/drivers/usb/core/usbcore.ko +# Add more cases here for different boards +case "$(machine)" in + nslu2) + insmod /lib/modules/`uname -r`/kernel/drivers/usb/host/ehci-hcd.ko + insmod /lib/modules/`uname -r`/kernel/drivers/usb/host/ohci-hcd.ko + ;; +esac +insmod /lib/modules/`uname -r`/kernel/drivers/usb/storage/usb-storage.ko +# if test -n "$1" then device="$1" -- cgit v1.2.3