feat(control): shutdown

This commit is contained in:
2026-01-05 22:59:31 +01:00
parent 0c619bdc1d
commit 58e56ffae3
3 changed files with 46 additions and 1 deletions
@@ -292,3 +292,7 @@ async function run_shell_command(ip: string, command: string): Promise<RequestRe
};
return await request_display(ip, '/shellCommand', options);
}
export async function shutdown(ip: string): Promise<void> {
await run_shell_command(ip, 'shutdown -h now');
}