summaryrefslogtreecommitdiffstats
path: root/bin/jlogin.in
diff options
context:
space:
mode:
Diffstat (limited to 'bin/jlogin.in')
-rw-r--r--bin/jlogin.in10
1 files changed, 9 insertions, 1 deletions
diff --git a/bin/jlogin.in b/bin/jlogin.in
index b353a0e..729afa7 100644
--- a/bin/jlogin.in
+++ b/bin/jlogin.in
@@ -1,7 +1,8 @@
#! @EXPECT_PATH@ --
##
-## $Id: jlogin.in,v 1.54 2006/08/10 07:00:31 heas Exp $
+## $Id: jlogin.in,v 1.56 2006/12/05 16:50:52 heas Exp $
##
+## @PACKAGE@ @VERSION@
## Copyright (C) 1997-2006 by Terrapin Communications, Inc.
## All rights reserved.
##
@@ -64,6 +65,9 @@ if {[ info exists env(CISCO_USER) ]} {
}
regexp {\(([^)]*)} "$reason" junk default_user
}
+if {[ info exists env(CLOGINRC) ]} {
+ set password_file $env(CLOGINRC)
+}
# Sometimes routers take awhile to answer (the default is 10 sec)
set timeout 120
@@ -105,6 +109,10 @@ for {set i 0} {$i < $argc} {incr i} {
set userpasswd [ lindex $argv $i ]
}
set do_passwd 0
+ # Version string
+ } -V* {
+ send_user "@PACKAGE@ @VERSION@\n"
+ exit 0
# passphrase
} -r* -
-R* {