1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
ZyXEL_PMG5617GA/target/linux/en75xx/base-files-econet/etc/init.d/zyusbinit.sh
2022-11-27 10:16:14 +00:00

27 lines
1.7 KiB
Bash

#!/bin/sh
echo -e "\033[1;34mInitial USB driver...\033[0m"
KERNELVER=`uname -r`
test -e /lib/modules/$KERNELVER/scsi_mod.ko && insmod /lib/modules/$KERNELVER/scsi_mod.ko
test -e /lib/modules/$KERNELVER/scsi_wait_scan.ko && insmod /lib/modules/$KERNELVER/scsi_wait_scan.ko
test -e /lib/modules/$KERNELVER/sd_mod.ko && insmod /lib/modules/$KERNELVER/sd_mod.ko
test -e /lib/modules/$KERNELVER/nls_base.ko && insmod /lib/modules/$KERNELVER/nls_base.ko
test -e /lib/modules/$KERNELVER/nls_utf8.ko && insmod /lib/modules/$KERNELVER/nls_utf8.ko
test -e /lib/modules/$KERNELVER/nls_cp936.ko && insmod /lib/modules/$KERNELVER/nls_cp936.ko
test -e /lib/modules/$KERNELVER/fat.ko && insmod /lib/modules/$KERNELVER/fat.ko
test -e /lib/modules/$KERNELVER/vfat.ko && insmod /lib/modules/$KERNELVER/vfat.ko
test -e /lib/modules/$KERNELVER/exfat.ko && insmod /lib/modules/$KERNELVER/exfat.ko
test -e /lib/modules/$KERNELVER/usbcore.ko && insmod /lib/modules/$KERNELVER/usbcore.ko
test -e /lib/modules/$KERNELVER/usblp.ko && insmod /lib/modules/$KERNELVER/usblp.ko
test -e /lib/modules/$KERNELVER/usb-storage.ko && insmod /lib/modules/$KERNELVER/usb-storage.ko
test -e /lib/modules/$KERNELVER/ehci-hcd.ko && insmod /lib/modules/$KERNELVER/ehci-hcd.ko
test -e /lib/modules/$KERNELVER/ohci-hcd.ko && insmod /lib/modules/$KERNELVER/ohci-hcd.ko
test -e /lib/modules/$KERNELVER/xhci-hcd.ko && insmod /lib/modules/$KERNELVER/xhci-hcd.ko
#EJECT need
test -e /lib/modules/$KERNELVER/cdrom.ko && insmod /lib/modules/$KERNELVER/cdrom.ko
test -e /lib/modules/$KERNELVER/isofs.ko && insmod /lib/modules/$KERNELVER/isofs.ko
test -e /lib/modules/$KERNELVER/sr_mod.ko && insmod /lib/modules/$KERNELVER/sr_mod.ko
echo -e "mount usbfs..."
mount -t usbfs usbfs /proc/bus/usb/