From 8bd157b0de31dc035817a39da1ef87846aaf84be Mon Sep 17 00:00:00 2001 From: kitadmin Date: Wed, 22 Jul 2026 13:10:16 +0000 Subject: [PATCH] fix: GL wizard indentation + balancer depends on kit-connect - GL connect-wizard.sh: fixed key authorization block indentation (was at 3 tabs instead of 2) - GL kit-busrouter Makefile: added +kit-connect to DEPENDS so installing the balancer auto-pulls connectivity Co-Authored-By: Claude Opus 4.8 --- gl-kit-connect/files/usr/sbin/connect-wizard.sh | 16 ++++++++-------- package/kit-busrouter/Makefile | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gl-kit-connect/files/usr/sbin/connect-wizard.sh b/gl-kit-connect/files/usr/sbin/connect-wizard.sh index f96e985..d61385d 100644 --- a/gl-kit-connect/files/usr/sbin/connect-wizard.sh +++ b/gl-kit-connect/files/usr/sbin/connect-wizard.sh @@ -130,14 +130,14 @@ else # Authorize tunnel key with hub (restrict,port-forwarding) if [ -n "$port" ] && [ "$port" != "0" ] && [ -f /etc/kitconnect/connect_id_ed25519.pub ]; then - PUBKEY=$(awk '{print $1" "$2}' /etc/kitconnect/connect_id_ed25519.pub 2>/dev/null) - if [ -n "$PUBKEY" ]; then - curl -s --connect-timeout 10 --max-time 15 \ - -X POST "http://${HUB_HOST}:${HUB_PORT}/api/authorize-key" \ - -H "Content-Type: application/json" \ - -d "{\"device_id\":\"${DEVICE_ID}\",\"pubkey\":\"${PUBKEY}\"}" \ - >/dev/null 2>&1 && ok "Tunnel key authorized (restrict, port ${port})" || true - fi + PUBKEY=$(awk '{print $1" "$2}' /etc/kitconnect/connect_id_ed25519.pub 2>/dev/null) + if [ -n "$PUBKEY" ]; then + curl -s --connect-timeout 10 --max-time 15 \ + -X POST "http://${HUB_HOST}:${HUB_PORT}/api/authorize-key" \ + -H "Content-Type: application/json" \ + -d "{\"device_id\":\"${DEVICE_ID}\",\"pubkey\":\"${PUBKEY}\"}" \ + >/dev/null 2>&1 && ok "Tunnel key authorized (restrict, port ${port})" || true + fi fi fi diff --git a/package/kit-busrouter/Makefile b/package/kit-busrouter/Makefile index 2c5bd06..c7bfcbb 100644 --- a/package/kit-busrouter/Makefile +++ b/package/kit-busrouter/Makefile @@ -7,7 +7,7 @@ define Package/kit-busrouter SECTION:=net CATEGORY:=Network TITLE:=Pioneer Bus Router multi-WAN balancer - DEPENDS:=+mwan3 +curl +jq + DEPENDS:=+mwan3 +curl +jq +kit-connect endef define Package/kit-busrouter/description Intelligent 5G+Starlink balancing, SIM auto-switch, and fleet telemetry.