Samba on OpenWrt

Install

$ opkg update
$ opkg install block-mount samba36-server luci-app-samba

Config

$ mkdir -p /mnt/usb
$ touch /mnt/usb/USB_DISK_NOT_PRESENT
$ chown nobody:nogroup /mnt/usb
$ vi /etc/config/fstab
$ block mount
Luci ▷ Services ▷ Network Shares:  
  Shared Directories:
    usb: /mnt/usb
$ sed -i '/invalid users/s/^/#/' smb.conf.template
$ smbpasswd -a root
New SMB password: ******  
Retype SMB password: ******  
$ /etc/init.d/samba restart

Result

smb://192.168.1.1/

References