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
+5
View File
@@ -46,7 +46,12 @@ class ImageRuntimeTests(unittest.TestCase):
files = {str(p.relative_to(self.root)) for p in self.root.rglob('*') if p.is_file()}
self.assertFalse(any('usb-off' in name or name.endswith('.ko') for name in files))
self.assertTrue((self.root / 'etc/NetworkManager/dispatcher.d/90-platina-usb-power').is_file())
self.assertTrue((self.root / 'etc/NetworkManager/dispatcher.d/95-platina-mesh').is_file())
self.assertTrue((self.root / 'usr/local/sbin/platina-cellular').is_file())
self.assertTrue((self.root / 'usr/local/sbin/platina-mesh').is_file())
self.assertTrue((self.root / 'etc/init.d/easytier').is_file())
self.assertTrue((self.root / 'etc/easytier/easytier.conf').is_file())
self.assertTrue((self.root / 'etc/runlevels/default/easytier').is_file())
self.assertFalse((self.root / 'etc/platina/usb-power.json').exists())
def test_missing_shutdown_helper_is_rejected(self):