Thanks. I hesitate to do this stuff because, if I understand correctly, it means I can't just cleanly upgrade when a new version comes along.
I place my script in /usr/local/pkg/ and a upgrade will have no impact on it (on nanobsd /cf/conf is the only directory that survive afaik an upgrade). As your problem isn't a fault there will be no fix for it.
Start a new post (this one took another direction) with as much information as possible diagram,screenshots etc