diff options
author | Simon Rettberg | 2024-09-20 17:08:51 +0200 |
---|---|---|
committer | Simon Rettberg | 2024-09-20 17:08:51 +0200 |
commit | 52b3a02fb2dbb0eca3fb4effbe7c6b60a5ecf168 (patch) | |
tree | a4b4b63b19c7660b4bdf4b4e9c09466da9d9a151 /modules-available/statistics/page.inc.php | |
parent | [statistics] Ignore HDDS (block devices) that are too small (diff) | |
download | slx-admin-52b3a02fb2dbb0eca3fb4effbe7c6b60a5ecf168.tar.gz slx-admin-52b3a02fb2dbb0eca3fb4effbe7c6b60a5ecf168.tar.xz slx-admin-52b3a02fb2dbb0eca3fb4effbe7c6b60a5ecf168.zip |
[rebootcontrol/statistics] Add templates for useful remote exec commands
Diffstat (limited to 'modules-available/statistics/page.inc.php')
-rw-r--r-- | modules-available/statistics/page.inc.php | 4 |
1 files changed, 4 insertions, 0 deletions
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 |