Restore per-interface domain resolvers

This commit is contained in:
ushan0v
2026-07-12 21:38:58 +03:00
parent cea4ab4505
commit afc05c9100
22 changed files with 3063 additions and 2433 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -eo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
SECTION_JS="$ROOT_DIR/luci-app-forkop/htdocs/luci-static/resources/view/forkop/section.js"
fail() {
printf 'FAIL: %s\n' "$1" >&2
exit 1
}
grep -Fq 'function dnsTypeChoices() {' "$SECTION_JS" ||
fail "network interface settings must define DNS protocol choices"
grep -Fq 'dnsTypeChoices().forEach((choice) => o.value(choice.value, choice.label));' "$SECTION_JS" ||
fail "network interface settings must populate the DNS protocol field"
grep -Fq 'o.renderItemSettingsModal = showInterfaceSettingsModal;' "$SECTION_JS" ||
fail "network interfaces must keep their settings modal handler"
printf 'LuCI network interface settings checks passed\n'