rc: small tweak on previous

This commit is contained in:
Franco Fichtner 2018-06-13 16:05:51 +02:00
parent dd1376df62
commit ebbb917b9d
2 changed files with 2 additions and 0 deletions

View File

@ -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);
}

View File

@ -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);
}