diff options
author | Tar Committer <tar@ocjtech.us> | 2002-08-09 21:59:06 +0000 |
---|---|---|
committer | Tar Committer <tar@ocjtech.us> | 2002-08-09 21:59:06 +0000 |
commit | ff168ecfe045c690c24d5bbc5a3062bf9d64120c (patch) | |
tree | a480f841453c9e22b6fd9ad4a54d1c9d5dbfabf6 /bin/elogin.in | |
parent | afcac75e572bcdd3cf269b921b7e8324aa5ffd4c (diff) | |
download | rancid-ff168ecfe045c690c24d5bbc5a3062bf9d64120c.tar.gz rancid-ff168ecfe045c690c24d5bbc5a3062bf9d64120c.tar.xz rancid-ff168ecfe045c690c24d5bbc5a3062bf9d64120c.zip |
Imported from rancid-2.2.2.tar.gz.rancid-2.2.2
Diffstat (limited to 'bin/elogin.in')
-rwxr-xr-x | bin/elogin.in | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/bin/elogin.in b/bin/elogin.in index a76155d..1b647fa 100755 --- a/bin/elogin.in +++ b/bin/elogin.in @@ -439,9 +439,17 @@ foreach router [lrange $argv $i end] { # Figure out prompts set u_prompt [find userprompt $router] - if { "$u_prompt" == "" } { set u_prompt "(Username|login| Login):" } + if { "$u_prompt" == "" } { + set u_prompt "(Username|login| Login):" + } else { + set u_prompt [lindex $u_prompt 0] + } set p_prompt [find passprompt $router] - if { "$p_prompt" == "" } { set p_prompt "\[Pp]assword:" } + if { "$p_prompt" == "" } { + set p_prompt "\[Pp]assword:" + } else { + set p_prompt [lindex $p_prompt 0] + } # Figure out cypher type if {[info exists cypher]} { |