Mark Thompson - 2012-10-24

I have been working on a script which works to automatically perform a rescan after a file has been added/deleted/renamed.

This was designed for the FreeNAS Plugin and is located in this thread…

I'd like to find out how to add a new switch to the MiniDLNA code to automatically conduct a scan after a period of time.

My quick example would be to define a few new switches:
-S = Scan Sub-directories.
-T = Time Delay in seconds before scanning starts after a triggering event.  (default value 300 seconds)

wait_on is the command that I use in the script and is the code I'd like to incorporate into MiniDLNA somehow.

Any pointers would be appreciated.

Thanks, Mark