Expose headless mode flag for UI to hide display-only features.
()
| 4819 | except OSError: |
| 4820 | return False |
| 4821 | return PWN_LAUNCHER_PATH in content |
| 4822 | |
| 4823 | |
| 4824 | # Components a working Ragnar-managed Pwnagotchi install needs. The bool marks |
| 4825 | # whether the piece is *critical* (a missing critical piece means the install is |
| 4826 | # broken); non-critical pieces are recommended but Pwnagotchi can still run. |
| 4827 | _PWN_COMPONENT_SPEC = ( |
| 4828 | ('repo_dir', '/opt/pwnagotchi clone', True), |
| 4829 | ('repo_git', '/opt/pwnagotchi git metadata (needed for updates)', False), |
| 4830 | ('service_file', 'pwnagotchi.service unit', True), |
| 4831 | ('service_launcher', 'service wired to flag-aware launcher', False), |