summaryrefslogtreecommitdiff
path: root/backend/decky_loader/utilities.py
diff options
context:
space:
mode:
Diffstat (limited to 'backend/decky_loader/utilities.py')
-rw-r--r--backend/decky_loader/utilities.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/backend/decky_loader/utilities.py b/backend/decky_loader/utilities.py
index 7c15bb85..4dbf34f7 100644
--- a/backend/decky_loader/utilities.py
+++ b/backend/decky_loader/utilities.py
@@ -79,6 +79,8 @@ class Utilities:
context.ws.add_route("utilities/remove_css_from_tab", self.remove_css_from_tab)
context.ws.add_route("utilities/allow_remote_debugging", self.allow_remote_debugging)
context.ws.add_route("utilities/disallow_remote_debugging", self.disallow_remote_debugging)
+ context.ws.add_route("utilities/start_ssh", self.allow_remote_debugging)
+ context.ws.add_route("utilities/stop_ssh", self.allow_remote_debugging)
context.ws.add_route("utilities/filepicker_ls", self.filepicker_ls)
context.ws.add_route("utilities/disable_rdt", self.disable_rdt)
context.ws.add_route("utilities/enable_rdt", self.enable_rdt)
@@ -284,6 +286,14 @@ class Utilities:
await service_stop(helpers.REMOTE_DEBUGGER_UNIT)
return True
+ async def start_ssh(self):
+ await service_start(helpers.SSHD_UNIT)
+ return True
+
+ async def stop_ssh(self):
+ await service_stop(helpers.SSHD_UNIT)
+ return True
+
async def filepicker_ls(self,
path: str | None = None,
include_files: bool = True,