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 <noreply@anthropic.com>
This commit is contained in:
@@ -130,14 +130,14 @@ else
|
|||||||
|
|
||||||
# Authorize tunnel key with hub (restrict,port-forwarding)
|
# Authorize tunnel key with hub (restrict,port-forwarding)
|
||||||
if [ -n "$port" ] && [ "$port" != "0" ] && [ -f /etc/kitconnect/connect_id_ed25519.pub ]; then
|
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)
|
PUBKEY=$(awk '{print $1" "$2}' /etc/kitconnect/connect_id_ed25519.pub 2>/dev/null)
|
||||||
if [ -n "$PUBKEY" ]; then
|
if [ -n "$PUBKEY" ]; then
|
||||||
curl -s --connect-timeout 10 --max-time 15 \
|
curl -s --connect-timeout 10 --max-time 15 \
|
||||||
-X POST "http://${HUB_HOST}:${HUB_PORT}/api/authorize-key" \
|
-X POST "http://${HUB_HOST}:${HUB_PORT}/api/authorize-key" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d "{\"device_id\":\"${DEVICE_ID}\",\"pubkey\":\"${PUBKEY}\"}" \
|
-d "{\"device_id\":\"${DEVICE_ID}\",\"pubkey\":\"${PUBKEY}\"}" \
|
||||||
>/dev/null 2>&1 && ok "Tunnel key authorized (restrict, port ${port})" || true
|
>/dev/null 2>&1 && ok "Tunnel key authorized (restrict, port ${port})" || true
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ define Package/kit-busrouter
|
|||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Network
|
CATEGORY:=Network
|
||||||
TITLE:=Pioneer Bus Router multi-WAN balancer
|
TITLE:=Pioneer Bus Router multi-WAN balancer
|
||||||
DEPENDS:=+mwan3 +curl +jq
|
DEPENDS:=+mwan3 +curl +jq +kit-connect
|
||||||
endef
|
endef
|
||||||
define Package/kit-busrouter/description
|
define Package/kit-busrouter/description
|
||||||
Intelligent 5G+Starlink balancing, SIM auto-switch, and fleet telemetry.
|
Intelligent 5G+Starlink balancing, SIM auto-switch, and fleet telemetry.
|
||||||
|
|||||||
Reference in New Issue
Block a user