- Adding USB-related support
Kernel modules-> USB support-> <*> kmod-usb-core. # #默认已经选了Kernel modules-> USB support-> <*> kmod-usb-ohci. # #默认已选 Old Usb1.0kernel modules-> USB support-> <*> kmod-usb-uhci. # # Usb1.1kernel modules-> USB support-> <*> kmod-usb-storage. Kernel modules-> USB support-> <*> Kmod-usb-storage-extras. Kernel modules-> USB support-> <*> kmod-usb2. # #默认已经选了 USB2.0
- Adding SCSI support
Kernel modules-> Block devices-> <*>kmod-scsi-core # #默认已经选了 usb3.0
- Add USB Mount
Base system-> <*>block-mount
- Add File system support
Kernel modules-> filesystems-> <*> kmod-fs-ext4 (removable HDD EXT4 format selection) Kernel modules-> filesystems-> <*&G T Kmod-fs-vfat (fat16/fat32 format selection) Kernel modules-> filesystems-> <*> kmod-fs-ntfs (NTFS format selection)
- Exit Save Make V=99
Auto-mount USB drive: Edit/etc/hotplug.d/block/10-mount write the following
#!/bin/ashcase "$ACTION" Inadd) for I in $ (ls/dev/| grep ' sd[a-z][1-9] ') domkdir-p/mnt/$imount-o Iocharset=utf8,rw/dev /$i/mnt/$iif [$?-ne 0]thenmount-o rw/dev/$i/mnt/$ifidone;; Remove) mount= ' MOUNT | Grep-o '/mnt/sd[a-z][1-9] ' for i in $MOUNTdoumount $iif [$-eq 0]thenrm-r $ifidone;; Esac
OpenWrt USB Hot Swap automatic mount