From 52b3a02fb2dbb0eca3fb4effbe7c6b60a5ecf168 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 20 Sep 2024 17:08:51 +0200 Subject: [rebootcontrol/statistics] Add templates for useful remote exec commands --- modules-available/statistics/page.inc.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules-available/statistics/page.inc.php') diff --git a/modules-available/statistics/page.inc.php b/modules-available/statistics/page.inc.php index 4f11e835..f07dca56 100644 --- a/modules-available/statistics/page.inc.php +++ b/modules-available/statistics/page.inc.php @@ -97,6 +97,10 @@ class Page_Statistics extends Page if (Module::isAvailable('rebootcontrol')) { RebootControl::prepareExec(); } + } elseif (substr($action, 0, 12) === 'exec-preset-') { + if (Module::isAvailable('rebootcontrol')) { + RebootControl::prepareExec(substr($action, 12)); + } } // Make sure we don't render any content for POST requests - should be handled above and then -- cgit v1.2.3-55-g7522