diff --git a/plugins/dynamix/ArrayOperation.page b/plugins/dynamix/ArrayOperation.page index f6ae6fafe..72881fada 100644 --- a/plugins/dynamix/ArrayOperation.page +++ b/plugins/dynamix/ArrayOperation.page @@ -546,7 +546,7 @@ function formatWarning(val) {
diff --git a/plugins/dynamix/include/Boot.php b/plugins/dynamix/include/Boot.php index 1ad74770e..1e30e8a87 100644 --- a/plugins/dynamix/include/Boot.php +++ b/plugins/dynamix/include/Boot.php @@ -75,12 +75,15 @@ $(document).ajaxSend(function(elm, xhr, s){ +$safemode = '/boot/unraidsafemode'; switch ($_POST['cmd']) { case 'reboot': + if (isset($_POST['safemode'])) touch($safemode); else @unlink($safemode); exec('/sbin/reboot');?> break; case 'shutdown': + if (isset($_POST['safemode'])) touch($safemode); else @unlink($safemode); exec('/sbin/poweroff');?> break;