Hi all,
Am a new, happy user of OpenWRT, having flashed an AR300M16.
I am basically using it just as a DLNA and SMB server (USB attached storage) and it's working just great! However I'd like to move the DB folder for Minidlna to a location in the persistent storage, so that it doesn't have to re-index every time the router is rebooted.
I have the luci app installed, and can see the setting in Advanced to point to a different location (default is /var/run/minidlna)
I tried copying the folder (once indexed) to /usr/share/minidlna, and updated the location in the settings. I can see now that it's persistent across reboots, and the service still works, however it doesn't seem to be able to write to the DB file. Ie. I tried adding a new file to the SSD folder that is being served, and the Minidlna service has not indexed it.
I tried updating the permissions on the DB file to 666 (rw for everyone), but doesn't seem to have made any difference.
Any ideas on what I can try, or what I can do to try to diagnose further?
UPDATE: It must have been file/folder permissions after all! Unfortunately my first test failed for some reason which must have been an issue with the new test file I added in.
I tried temporarily removing some files, and the "files served" count did update correctly!
So I think my initial instinct for the file and folder permissions (rw for all) was probably the solution.
Apologies for the muck around, but hopefully this helps someone else trying to implement this