From 14b0aecb65a043538f9c99b2d8d382616f9fbad4 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 15 Jan 2021 21:36:49 +0100 Subject: ssh: T631: add op-mode "restart ssh" command (cherry picked from commit 3ce7a8c6e55d7296fc9155a6b8ca913d4a08b1ab) --- op-mode-definitions/restart-ssh.xml.in | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 op-mode-definitions/restart-ssh.xml.in diff --git a/op-mode-definitions/restart-ssh.xml.in b/op-mode-definitions/restart-ssh.xml.in new file mode 100644 index 000000000..6504cc18a --- /dev/null +++ b/op-mode-definitions/restart-ssh.xml.in @@ -0,0 +1,13 @@ + + + + + + + Restart SSH service + + if cli-shell-api existsActive service ssh; then sudo systemctl restart ssh.service; else echo "Service SSH not configured"; fi + + + + -- cgit v1.2.3