I'm running an ad blocking script in the wanup, and a custom theme script in the init. I notice that sometimes when rebooting the router rt-n16, in the logs there will show errors coming from nmbd  stating that "this request must come from a wins server."
When startup is finished, sometimes it defaults to "WORKGROUP" instead of my named workgroup and nothing can be found on the attached USB drive.
I've noticed this… most of the time if I run "service smbd stop" and "service nmbd stop" in telnet or the sytem tab BEFORE rebooting, I don't get the problem on startup. It shows the proper workgroup name and ip of the router (acting also as wins server).
I've tried various "sleep" settings for the init and wan up scripts, sometimes it works and sometimes not. I was thinking the scripts had thrown off the timing of the boot operations and were causing the issue, but I think this may be happening regardless.
My questions are these:
1) Should I be stopping these services before a reboot? The fact that it seems to solve the issue may just be coincidence or…. ?
2) I notice when restarting SMBD, it also restarts aspects of dnsmasq, thus ruining my wan up script for ad blocking. If I didn't want to reboot again, would executing "service smbd restart," "service nmbd restart" and then renewing the wan ip (to re-fire the wan up script) also be a viable option? I ask this because…
3) I notice when running top it shows 2 of smbd and nmbd running. My concern is that if I restart the services manually, will it affect the way something else acts? I know the startup timing can be crucial.
Sorry I'm a bit of a linux newb.