diff --git a/src/opnsense/scripts/shell/halt.php b/src/opnsense/scripts/shell/halt.php index ca634da3e..e01726e1e 100755 --- a/src/opnsense/scripts/shell/halt.php +++ b/src/opnsense/scripts/shell/halt.php @@ -37,6 +37,7 @@ $fp = fopen('php://stdin', 'r'); echo 'The system will halt and power off. Do you want to proceed? [y/N]: '; if (strcasecmp(chop(fgets($fp)), 'y') == 0) { + echo PHP_EOL; system_halt(true); } diff --git a/src/opnsense/scripts/shell/reboot.php b/src/opnsense/scripts/shell/reboot.php index 82831e389..bd5899b96 100755 --- a/src/opnsense/scripts/shell/reboot.php +++ b/src/opnsense/scripts/shell/reboot.php @@ -36,6 +36,7 @@ $fp = fopen('php://stdin', 'r'); echo 'The system will reboot. Do you want to proceed? [y/N]: '; if (strcasecmp(chop(fgets($fp)), 'y') == 0) { + echo PHP_EOL; system_reboot(true); }