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

Function wardriving_wipe_data

webapp_modern.py:8537–8547  ·  view source on GitHub ↗

Delete all wardriving session data.

()

Source from the content-addressed store, hash-verified

8535 # repeated too quickly" until it is reset - so once a box has failed a
8536 # few times, enabling it fails for a reason that has nothing to do with
8537 # whatever is actually wrong, and the real error never gets a chance to
8538 # reappear. This is the same `systemctl reset-failed` the kiosk doctor
8539 # tells people to run by hand.
8540 _run_systemctl(['reset-failed', KIOSK_SERVICE])
8541 enable_proc = _run_systemctl(['enable', '--now', KIOSK_SERVICE])
8542 if enable_proc.returncode != 0:
8543 err = enable_proc.stderr.strip() or enable_proc.stdout.strip() or 'unknown error'
8544 logger.error(f"[kiosk] enable --now failed: {err}")
8545 _kiosk_task_set(phase='failed',
8546 error=f'Could not start the kiosk service: {err}{_kiosk_failure_detail()}')
8547 return False
8548 # `enable --now` returns as soon as the process is spawned, so a kiosk
8549 # that dies a second later reported success and left the UI waiting on a
8550 # service that was already gone. Give it a moment and say so instead.

Callers

nothing calls this directly

Calls 3

_get_wardriving_engineFunction · 0.85
wipe_all_dataMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected