summaryrefslogtreecommitdiffstats
path: root/bin/clogin.in
diff options
context:
space:
mode:
authorTar Committer <tar@ocjtech.us>2001-10-16 03:14:40 +0000
committerTar Committer <tar@ocjtech.us>2001-10-16 03:14:40 +0000
commitb0d71377c1854271b4511488422427f73d9473d1 (patch)
tree4f4efba2179225c53238aa53e933ba81100cad81 /bin/clogin.in
parent10cc9157892d7902dddde70a5b9b2046d0c376ea (diff)
downloadrancid-b0d71377c1854271b4511488422427f73d9473d1.tar.gz
rancid-b0d71377c1854271b4511488422427f73d9473d1.tar.xz
rancid-b0d71377c1854271b4511488422427f73d9473d1.zip
Imported from rancid-2.2b8.tar.gz.rancid-2.2b8
Diffstat (limited to 'bin/clogin.in')
-rwxr-xr-xbin/clogin.in9
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/clogin.in b/bin/clogin.in
index 1929efd..4ebe2ac 100755
--- a/bin/clogin.in
+++ b/bin/clogin.in
@@ -432,7 +432,7 @@ proc run_commands { prompt command } {
# If the prompt is (enable), then we are on a switch and the
# command is "set length 0"; otherwise its "term length 0".
# skip if its and extreme.
- if { [ string compare "extreme" "$prompt" ] } {
+ if { [ string compare "extreme" "$platform" ] } {
if [ regexp -- ".*> .*enable" "$prompt" ] {
send "set length 0\r"
} else {
@@ -501,7 +501,12 @@ proc run_commands { prompt command } {
}
}
log_user 1
- send "exit\r"
+
+ if { [ string compare "extreme" "$platform" ] } {
+ send "exit\r"
+ } else {
+ send "quit\r"
+ }
expect {
"Do you wish to save your configuration changes" {
send "n\r"