Please don't create any new topic here unless you have software to post/release.
I think better you should to rename it to e.g. 04_04_samba_custom.init or smth else, better to leave original files untouched.
I'd just add the possibility to specify a path deeper than the share itself: in my NAS, in one case, I have a multi-purpose network share (say USBShare1), and I'd like to filter it deeper (sort of USBShare1/Movies;USBShare1/Series). I tried to set it on your script but I suppose it skips everthing after the slash and before the semicolon.
I guess it would be a simple task to accomplish, but unfortunately I'm not familiar with the scriptintg language, so I try to get some hint here