Files
shenlei 139bb1fc21
Offline project checks / check (push) Canceled after 0s
feat(mesh): integrate MeshPort/EasyTier P2P mesh network with NetworkManager auto-connect
- 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).
2026-11-10 09:50:00 +09:00

25 lines
584 B
Plaintext
Executable File

#!/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
}