const char *getdefaultconfig(char *service, char *path, size_t len, char *configname)
{
sprintf(path, "/jffs/etc/%s", configname);
FILE *fp = fopen(path, "r"); //test if custom config is available
if (fp != NULL) {
if (service)
registerCustom(service);
fclose(fp);
} else {
sprintf(path, "/tmp/%s", configname);
}
return path;
}
So to me it looks like that unbound will look for /jffs/etc/unbound.conf
But a slow USB stick will not always be up already so you might have to restart unbound after sleep 10 or is-mounted after a reboot.
Joined: 08 May 2018 Posts: 14249 Location: Texas, USA
Posted: Thu Oct 26, 2023 19:45 Post subject:
Thanks for chasing the rabbit further down the hole, sir @egc. I stand by my previous statement: I was using the wrong search text
Quote:
Unless the specific bits syntax has changed or is hard-coded somewhere else in the source code, custom configs are gone outside of using a startup script. Unbound has been updated since either thread was started.