summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/ipos.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/model/ipos.rb')
-rw-r--r--lib/oxidized/model/ipos.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/oxidized/model/ipos.rb b/lib/oxidized/model/ipos.rb
index e20cf40..1a77807 100644
--- a/lib/oxidized/model/ipos.rb
+++ b/lib/oxidized/model/ipos.rb
@@ -27,8 +27,10 @@ class IPOS < Oxidized::Model
cfg :telnet, :ssh do
post_login 'terminal length 0'
- pre_logout 'exit'
- pre_logout 'n'
+ pre_logout do
+ send "exit\n"
+ send "n\n"
+ end
end
end