#!/bin/bash # # # /etc/rc.d/rc.usb-stick # # # Original File: # -------------- # http://Linux-Boot.net/Boot/Scripts/rc.usb-stick # # # 23-Sep-04 amo Date-of-Birth # # # # lsmod # ======= # usb-storage 25176 1 # usb-uhci 24304 0 (unused) # usbcore 65164 0 [usb-storage usb-uhci] # # Lib="/lib/modules/`uname -r`/kernel/drivers/usb" # # Src="/usr/local/src/linux-2.4.27/drivers/usb" # # After including the modules into the kernel, # its gone from $LIB... so use the $Src version # # usb="$Lib" # # # ( insmod -f *.o ) # # insmod $usb/host/ehci-hcd.o # insmod $usb/usbcore.o insmod $usb/host/usb-uhci.o # # insmod $usb/uhci.o # insmod $usb/usb-ohci.o # insmod $usb/storage/usb-storage.o # sleep 2 # # lsmod # # # # See if we can mount the usb stick # --------------------------------- # # mount -t auto /dev/sda1 /mnt/usb # # df # # # End of file