mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
rc: small tweak on previous
This commit is contained in:
parent
dd1376df62
commit
ebbb917b9d
@ -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);
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user