mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
* Fix help
* Fix exit/quit
This commit is contained in:
parent
2133e06a5f
commit
eb64ae425b
@ -149,6 +149,8 @@ EOF;
|
||||
|
||||
}
|
||||
|
||||
$fp = fopen('php://stdin', 'r');
|
||||
|
||||
echo ".\n\n";
|
||||
|
||||
$pkg_interface='console';
|
||||
@ -191,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 = "";
|
||||
@ -214,7 +224,7 @@ while($shell_active == true) {
|
||||
safe_mkdir("/etc/phpshellsessions");
|
||||
if($recording)
|
||||
conf_mount_ro();
|
||||
echo "==> Sessions available for playback are:\n\n";
|
||||
echo "==> Sessions available for playback are:\n";
|
||||
system("cd /etc/phpshellsessions && ls /etc/phpshellsessions");
|
||||
echo "==> end of list.\n";
|
||||
$command = "";
|
||||
@ -292,4 +302,3 @@ function playback_file($playback_file) {
|
||||
playback_text($playback_file_contents);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user