diff options
author | Renato Botelho <renato@netgate.com> | 2015-12-11 07:25:34 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-12-11 07:25:34 -0200 |
commit | 7365d0f97d5690b4f8da43982459c3be582fa2f5 (patch) | |
tree | 859c86305c8797aedfa927a5f5def6fed7300cd1 /src | |
parent | 35bcafe198f2d96ac90293d07667fcf236769b1d (diff) | |
parent | 287f8e27674102ec0de56abc67583be3b1073ce4 (diff) | |
download | pfsense-7365d0f97d5690b4f8da43982459c3be582fa2f5.zip pfsense-7365d0f97d5690b4f8da43982459c3be582fa2f5.tar.gz |
Merge pull request #2191 from phil-davis/patch-3
Diffstat (limited to 'src')
-rwxr-xr-x | src/etc/rc.initial.reboot | 16 |
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(); } |