feat(mesh): integrate MeshPort/EasyTier P2P mesh network with NetworkManager auto-connect
Offline project checks / check (push) Canceled after 0s

- Add platina-mesh CLI (scripts/phone-mesh.py) for status inspection, control, and JSON telemetry.
- Add OpenRC service (scripts/phone-mesh.openrc) for managing easytier-core daemon.
- Add NetworkManager dispatcher hook (scripts/phone-mesh-dispatcher.sh) to automatically start mesh when external default route is active and stop when disconnected.
- Add default mesh configuration (scripts/easytier.conf) with node identity Platina (192.168.20.10).
- Integrate mesh runtime into image overlay builder (scripts/image-runtime.py).
- Add unit tests for mesh control and image runtime integration (142 tests passing).
This commit is contained in:
shenlei
2026-11-10 09:50:00 +09:00
parent 2a9ec1e1d6
commit 139bb1fc21
7 changed files with 375 additions and 1 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/sbin/openrc-run
description="EasyTier P2P Mesh Network Service"
command="/usr/local/bin/easytier-core"
command_args="-c /etc/easytier/easytier.conf"
command_background="yes"
pidfile="/run/easytier.pid"
output_log="/var/log/easytier.log"
error_log="/var/log/easytier.log"
depend() {
need localmount
after net
}
start_pre() {
if [ ! -c /dev/net/tun ]; then
modprobe tun >/dev/null 2>&1 || true
fi
if [ ! -r /etc/easytier/easytier.conf ]; then
eerror "EasyTier configuration file /etc/easytier/easytier.conf not found"
return 1
fi
}