luci-app-olsr: re-add missing interface creation

commit c567bfc removed the uci.add() call to create a new interface,
seemingly without considering its side-effects. this lead to trying to
configure a non-existant interface, resulting in an empty settings page.

Signed-off-by: Victoria Grain <victoria+openwrt@gratux.xyz>
(cherry picked from commit d98f03e201)
This commit is contained in:
Victoria Grain authored and Josef Schlehofer committed 2026-09-13 22:14:37 +02:00
1 parent cf6fbb71f7
commit f883d904d6
2 files changed
+2

No files matched your search

@@ -483,6 +483,7 @@ return view.extend({
};
ifs.handleAdd = function (ev) {
uci.add('olsrd', 'Interface');
uci
.save()
.then(function () {
@@ -462,6 +462,7 @@ return view.extend({
ifs.template = 'cbi/tblsection';
ifs.handleAdd = function (ev) {
uci.add('olsrd6', 'Interface');
uci
.save()
.then(function () {