diff options
author | Tar Committer <tar@ocjtech.us> | 2001-10-16 03:14:40 +0000 |
---|---|---|
committer | Tar Committer <tar@ocjtech.us> | 2001-10-16 03:14:40 +0000 |
commit | b0d71377c1854271b4511488422427f73d9473d1 (patch) | |
tree | 4f4efba2179225c53238aa53e933ba81100cad81 /bin/clogin.in | |
parent | 10cc9157892d7902dddde70a5b9b2046d0c376ea (diff) | |
download | rancid-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-x | bin/clogin.in | 9 |
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" |