summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-12-11 07:25:01 -0200
committerRenato Botelho <renato@netgate.com>2015-12-11 07:25:01 -0200
commit35bcafe198f2d96ac90293d07667fcf236769b1d (patch)
treec271c0bbe39c70847ea61e7e06c2c4a586acf604
parent8aa4950f827c516505f9e66cd589e7aab237b3a8 (diff)
parentcfd8da201fefbf3e181a2c59696897fe068ce820 (diff)
downloadpfsense-35bcafe198f2d96ac90293d07667fcf236769b1d.zip
pfsense-35bcafe198f2d96ac90293d07667fcf236769b1d.tar.gz
Merge pull request #2192 from phil-davis/patch-4
-rwxr-xr-xsrc/etc/rc.initial.halt16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/etc/rc.initial.halt b/src/etc/rc.initial.halt
index df91ded..27377b5 100755
--- a/src/etc/rc.initial.halt
+++ b/src/etc/rc.initial.halt
@@ -37,21 +37,11 @@
$fp = fopen('php://stdin', 'r');
- echo <<<EOD
-
-{$g['product_name']} will shutdown and halt system. This may take a few minutes, depending on your hardware.
-
-Do you want to proceed [y|n]?
-EOD;
+ echo "\n" . sprintf(gettext("%s will shutdown and halt system. 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']} will shutdown and halt system now.
-
-EOD;
-
+ echo "\n" . sprintf(gettext("%s will shutdown and halt system now."), $g['product_name']) . "\n";
system_halt();
}
OpenPOWER on IntegriCloud