summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--parse.y8
1 files changed, 7 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 31f6ea9..19218fd 100644
--- a/parse.y
+++ b/parse.y
@@ -5614,8 +5614,14 @@ handle_eof_input_unit ()
{
if (eof_encountered < eof_encountered_limit)
{
- fprintf (stderr, _("Use \"%s\" to leave the shell.\n"),
+ char *vyatta_configure_mode = getenv ( "_OFR_CONFIGURE" );
+ if (*vyatta_configure_mode != NULL) {
+ fprintf (stderr, _("Use \"%s\" to leave configuration mode.\n"),
login_shell ? "logout" : "exit");
+ } else {
+ fprintf (stderr, _("Use \"%s\" to leave the shell.\n"),
+ login_shell ? "logout" : "exit");
+ }
eof_encountered++;
/* Reset the parsing state. */
last_read_token = current_token = '\n';