diff --git a/deploy/yaris_uplink.py b/deploy/yaris_uplink.py index fc2058d..04f07c7 100644 --- a/deploy/yaris_uplink.py +++ b/deploy/yaris_uplink.py @@ -372,6 +372,7 @@ psk={keyfile_escape(password)} method=auto dhcp-send-hostname=true dhcp-hostname=yaris +dhcp-client-id=yaris-obd [ipv6] method=auto diff --git a/static/js/yaris.js b/static/js/yaris.js index ae8e90d..b24058d 100644 --- a/static/js/yaris.js +++ b/static/js/yaris.js @@ -326,24 +326,3 @@ window.setInterval(function () { message.hidden = false; }); }, 30000); - -// ── Phone hotspot banner ─────────────────────────────────────────────────── -(function () { - const banner = document.getElementById('phone-hotspot-banner'); - const ipEl = document.getElementById('phone-hotspot-ip'); - function checkUplink() { - fetch('/api/uplink/status') - .then(r => r.ok ? r.json() : null) - .then(s => { - if (s && s.mode === 'phone' && s.ip_address) { - ipEl.textContent = `http://${s.ip_address}/`; - banner.hidden = false; - } else { - banner.hidden = true; - } - }) - .catch(() => { banner.hidden = true; }); - } - checkUplink(); - window.setInterval(checkUplink, 15000); -})(); diff --git a/templates/index.html b/templates/index.html index 5b02963..1d7c3c5 100644 --- a/templates/index.html +++ b/templates/index.html @@ -9,11 +9,6 @@ {% block content %}