summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/sbin/pfSsh.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/sbin/pfSsh.php b/usr/local/sbin/pfSsh.php
index 54d587a..906be8f 100755
--- a/usr/local/sbin/pfSsh.php
+++ b/usr/local/sbin/pfSsh.php
@@ -13,14 +13,16 @@ require("config.inc");
echo ".";
$g['booting'] = false;
-function more($text) {
+function more($text, $count=24) {
$counter=0;
$lines = split("\n", $text);
foreach($lines as $line) {
- if($counter > 24) {
+ if($counter > $count) {
echo "Press RETURN to continue ...";
$fp = fopen('php://stdin', 'r');
$pressreturn = chop(fgets($fp));
+ if($pressreturn == "q" || $pressreturn == "quit")
+ return;
fclose($fp);
$counter = 0;
}
OpenPOWER on IntegriCloud