From 610c174db8504b1b84a2e683874894122de162cc Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 15 Jan 2021 11:35:23 +0100 Subject: [roomplanner] WOL pvsmgr if tutor machine boots or a user logs in Closes #3586 --- .../roomplanner/hooks/client-update.inc.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 modules-available/roomplanner/hooks/client-update.inc.php diff --git a/modules-available/roomplanner/hooks/client-update.inc.php b/modules-available/roomplanner/hooks/client-update.inc.php new file mode 100644 index 00000000..a8ffd555 --- /dev/null +++ b/modules-available/roomplanner/hooks/client-update.inc.php @@ -0,0 +1,19 @@ + $ip]); + if (!empty($managers) && Module::isAvailable('rebootcontrol')) { + // Create WOL job + RebootControl::wakeMachines($managers); + } +} \ No newline at end of file -- cgit v1.2.3-55-g7522