From ebbb917b9d46f28322b99313ae9167f5ffd73412 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Wed, 13 Jun 2018 16:05:51 +0200 Subject: [PATCH] rc: small tweak on previous --- src/opnsense/scripts/shell/halt.php | 1 + src/opnsense/scripts/shell/reboot.php | 1 + 2 files changed, 2 insertions(+) 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); }