summaryrefslogtreecommitdiffstats
path: root/src/etc/rc.initial.reboot
diff options
context:
space:
mode:
Diffstat (limited to 'src/etc/rc.initial.reboot')
-rwxr-xr-xsrc/etc/rc.initial.reboot16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/etc/rc.initial.reboot b/src/etc/rc.initial.reboot
index 6f70407..fdcc480 100755
--- a/src/etc/rc.initial.reboot
+++ b/src/etc/rc.initial.reboot
@@ -37,21 +37,11 @@
$fp = fopen('php://stdin', 'r');
- echo <<<EOD
-
-{$g['product_name']} will reboot. This may take a few minutes, depending on your hardware.
-
-Do you want to proceed [y|n]?
-EOD;
+ echo "\n" . sprintf(gettext("%s will reboot. This may take a few minutes, depending on your hardware."), $g['product_name']) . "\n";
+ echo gettext("Do you want to proceed [y|n]?") . " ";
if (strcasecmp(chop(fgets($fp)), "y") == 0) {
-
- echo <<<EOD
-
-{$g['product_name']} is rebooting now.
-
-EOD;
-
+ echo "\n" . sprintf(gettext("%s is rebooting now."), $g['product_name']) . "\n";
system_reboot_sync();
}
OpenPOWER on IntegriCloud