if (opt_usb)
then
    depends on fli4l version 3.0.1
    provides usb version 3.0.1

    foreach i in usb_extra_driver_%
    do
        if ( i == "usb-storage" )
        then
            stat("opt/files/lib/modules/${KERNEL_VERSION}/kernel/drivers/scsi/scsi_mod.o", tmpscsi)
            stat("opt/files/lib/modules/${KERNEL_VERSION}/kernel/drivers/scsi/sd_mod.o", tmpsd)

            if ( tmpscsi_res == "OK" && tmpsd_res == "OK" )
            then
                add_to_opt "files/lib/modules/${KERNEL_VERSION}/kernel/drivers/scsi/scsi_mod.o"
                add_to_opt "files/lib/modules/${KERNEL_VERSION}/kernel/drivers/scsi/sd_mod.o"
            else
                error "Missing OPT_HD, please extract"
            fi
         fi
     done
else
    foreach i in net_drv_%
    do
        if (i =~ "(RE:USB_NET_DRV)")
        then
            error "If you want to use an usb ethernet driver you have to set OPT_USB to yes"
        fi
    done
fi
