| 14128 | addConsoleMessage(`Pwnagotchi ${verb.toLowerCase()} started`, 'success'); |
| 14129 | if (result && result.status) { |
| 14130 | updatePwnagotchiUI(result.status); |
| 14131 | } else { |
| 14132 | refreshPwnagotchiStatus({ silent: true }); |
| 14133 | } |
| 14134 | } catch (error) { |
| 14135 | console.error(`Failed to start Pwnagotchi ${verb.toLowerCase()}:`, error); |
| 14136 | addConsoleMessage(`${verb} failed: ${error.message}`, 'error'); |
| 14137 | stopPwnLogStreaming(); |
| 14138 | setPwnLogEmptyMessage('Installer failed to start. Check Ragnar logs for details.'); |
| 14139 | } finally { |
| 14140 | updatePwnButtons(); |
| 14141 | } |
| 14142 | } |
| 14143 | |
| 14144 | function handlePwnInstallClick() { |
| 14145 | return runPwnInstaller('install'); |
| 14146 | } |