summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-12-11 07:24:16 -0200
committerRenato Botelho <renato@netgate.com>2015-12-11 07:24:16 -0200
commit8aa4950f827c516505f9e66cd589e7aab237b3a8 (patch)
tree283f70ba4cfc2547c5088d6c98a1302ef5cdb1d9 /src
parentb2ed712e175dd01ec728b748bd7771a6eccb511e (diff)
parenta2317d7dcdc123c5057ff78395050df995f1efca (diff)
downloadpfsense-8aa4950f827c516505f9e66cd589e7aab237b3a8.zip
pfsense-8aa4950f827c516505f9e66cd589e7aab237b3a8.tar.gz
Merge pull request #2193 from phil-davis/patch-5
Diffstat (limited to 'src')
-rwxr-xr-xsrc/etc/rc.initial.defaults19
1 files changed, 4 insertions, 15 deletions
diff --git a/src/etc/rc.initial.defaults b/src/etc/rc.initial.defaults
index 40ceaf9..c80a18d 100755
--- a/src/etc/rc.initial.defaults
+++ b/src/etc/rc.initial.defaults
@@ -36,24 +36,13 @@
$fp = fopen('php://stdin', 'r');
- echo <<<EOD
-
-You are about to reset the firewall to factory defaults.
-The firewall will reboot after resetting the configuration.
-
-Do you want to proceed [y|n]?
-EOD;
+ echo "\n" . gettext("You are about to reset the firewall to factory defaults.");
+ echo "\n" . gettext("The firewall will reboot after resetting the configuration.");
+ echo "\n" . gettext("Do you want to proceed [y|n]?") . " ";
if (strcasecmp(chop(fgets($fp)), "y") == 0) {
-
reset_factory_defaults();
-
- 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