# SliTaz package receipt. PACKED_SIZE="12.0K" UNPACKED_SIZE="32.0K" PACKAGE="module-usb-storage" VERSION="2.6.20" CATEGORY="base-system" GROUP="driver,usb" SHORT_DESC="Kernel module for the USB storage devices" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" WEB_SITE="http://tiny.slitaz.org/" WANTED="linux" DEPENDS="module-sd_mod" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { local path export src=$WOK/$WANTED/source/linux-$VERSION export _pkg=$WOK/$WANTED/install path=lib/modules/$(ls $_pkg/lib/modules)/kernel mkdir -p $fs/$path $fs/sbin ln -s /bin/busybox $fs/sbin/mdev $src/slitaz/list_modules.sh drivers/usb/storage/usb-storage.ko | while read module; do dir=$path/$(dirname $module) [ -d $fs/$dir ] || mkdir -p $fs/$dir cp -a $_pkg/$path/$module $fs/$dir done } # Post install/remove commands for Tazpkg. post_install() { for i in scsi_mod usbcore usb-storage ; do grep -qs ^$i$ $1/modules || echo $i >> $1/modules done } #scsi_mod.ko: #parm=scsi_logging_level:a bit mask of logging levels #parm=max_luns:last scsi LUN (should be between 1 and 2^32-1) #parm=max_report_luns:REPORT LUNS maximum number of LUNS received (should be between 1 and 16384) #parm=inq_timeout:Timeout (in seconds) waiting for devices to answer INQUIRY. Default is 5. Some non-compliant devices need more. #parm=dev_flags:Given scsi_dev_flags=vendor:model:flags[,v:m:f] add black/white list entries for vendor and model with an integer value of flags to the scsi device info list #parm=default_dev_flags:scsi default device flag integer value #usbcore.ko: #parm=blinkenlights:true to cycle leds on hubs #parm=old_scheme_first:start with the old device initialization scheme #parm=use_both_schemes:try the other device initialization scheme if the first one fails #parm=usbfs_snoop:true to log all usbfs traffic #usb-storage.ko: #parm=delay_use:seconds to delay before using a new device