MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _start_usb_interface_monitor

Method _start_usb_interface_monitor

wifi_manager.py:607–614  ·  view source on GitHub ↗

Start a background thread that watches for WiFi interface disappearance.

(self)

Source from the content-addressed store, hash-verified

605 try:
606 state_file = '/tmp/ragnar_wifi_state.json'
607 if os.path.exists(state_file):
608 os.remove(state_file)
609 except Exception as e:
610 self.logger.warning(f"Could not clean up connection state: {e}")
611
612 def _create_restart_marker(self):
613 """Create a marker file to help detect service restarts"""
614 try:
615 marker_file = '/tmp/ragnar_wifi_manager.pid'
616 with open(marker_file, 'w') as f:
617 f.write(f"{os.getpid()}\n{time.time()}\n")

Callers 1

startMethod · 0.95

Calls 1

startMethod · 0.45

Tested by

no test coverage detected