Skip to content
Permalink
Browse files

rc: allow experimental AiMesh toggle to survive factory default resets

This allows the feature to be enabled and stay enabled through
factory default resets.

Note that this is still purely EXPERIMENTAL.
  • Loading branch information...
RMerl committed May 22, 2019
1 parent 5720f1b commit 754dc27d0e69f16220f4c72c591de628b4b65444
Showing with 7 additions and 1 deletion.
  1. +7 −1 release/src/router/rc/format.c
@@ -178,11 +178,17 @@ void adjust_merlin_config(void)
free(nv);
#endif

// Migrate lan_dns_fwd_local (384.11)
/* Migrate lan_dns_fwd_local (384.11) */
if (nvram_get_int("lan_dns_fwd_local")) {
nvram_set("dns_fwd_local", "1");
nvram_unset("lan_dns_fwd_local");
}

/* Enable experimental AiMesh */
#ifdef RTCONFIG_AMAS
if (f_exists("/jffs/.gomesh"))
nvram_set("amas_force", "1");
#endif
}

void adjust_url_urlelist(void)

0 comments on commit 754dc27

Please sign in to comment.
You can’t perform that action at this time.