From ab8046f57ad7e42dfd9faf596fc5a3045d9c27a1 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 3 Nov 2017 13:20:19 +0100 Subject: [rebootcontrol] Move reboot function to helper class --- .../rebootcontrol/inc/rebootcontrol.inc.php | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 modules-available/rebootcontrol/inc/rebootcontrol.inc.php (limited to 'modules-available/rebootcontrol/inc/rebootcontrol.inc.php') diff --git a/modules-available/rebootcontrol/inc/rebootcontrol.inc.php b/modules-available/rebootcontrol/inc/rebootcontrol.inc.php new file mode 100644 index 00000000..789552cd --- /dev/null +++ b/modules-available/rebootcontrol/inc/rebootcontrol.inc.php @@ -0,0 +1,30 @@ + $list, + "shutdown" => $shutdown, + "minutes" => $minutes, + "locationId" => $locationId, + "sshkey" => SSHKey::getPrivateKey(), + "port" => 9922, // Hard-coded, must match mgmt-sshd module + )); + } + +} \ No newline at end of file -- cgit v1.2.3-55-g7522