diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-04-14 17:31:33 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-04-14 17:31:33 +0000 |
commit | 9f2820d8889568fb49d4682008748b320c7aa222 (patch) | |
tree | 7438458796d346bf2501cb2464049260b071ea37 /usr/local/sbin | |
parent | 16ab9f44ad2623d3f3c751af415aab78fc76ee58 (diff) | |
download | pfsense-9f2820d8889568fb49d4682008748b320c7aa222.zip pfsense-9f2820d8889568fb49d4682008748b320c7aa222.tar.gz |
* Fix help
* Fix exit/quit
Diffstat (limited to 'usr/local/sbin')
-rwxr-xr-x | usr/local/sbin/pfSsh.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/usr/local/sbin/pfSsh.php b/usr/local/sbin/pfSsh.php index 793706d..0363360 100755 --- a/usr/local/sbin/pfSsh.php +++ b/usr/local/sbin/pfSsh.php @@ -193,6 +193,14 @@ while($shell_active == true) { continue; } } + if($first_command == "exit" or $first_command == "quit") { + die; + } + if($first_command == "help" or $first_command == "?") { + show_help(); + $playbackbuffer = ""; + continue; + } if($first_command == "exec" or $first_command == "exec;") { playback_text($playbackbuffer); $playbackbuffer = ""; |