OpenWRT 挂载硬盘并设置网络共享

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
vim /etc/rc.local
echo "152d:0578:u" >> /sys/module/usb_storage/parameters/quirks
sed -i 's/usb-storage/usb-storage quirks=152d:0578:u/g' /etc/modules.d/usb-storage

opkg install lsblk
opkg install shadow-common shadow-useradd
useradd samba
smbpasswd -a samba
chown -R samba:samba /media/nas


smbpasswd -x samba
userdel samba