mirror of
https://codeberg.org/PLG-Development/PLG-MuDiCS
synced 2026-07-06 00:47:09 +00:00
feat(control): shutdown
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user