projects
/
dell-switch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4a8785
)
exit 0 on MikroTik RouterOS
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 7 Jul 2018 17:15:45 +0000
(19:15 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 7 Jul 2018 17:15:45 +0000
(19:15 +0200)
dell-switch.pl
patch
|
blob
|
history
diff --git
a/dell-switch.pl
b/dell-switch.pl
index
e3c3b0d
..
8ac74a5
100755
(executable)
--- a/
dell-switch.pl
+++ b/
dell-switch.pl
@@
-110,6
+110,9
@@
while() {
$buff = '';
} elsif ( $buff =~ s{Management access will be blocked for the duration of the transfer.*Are you sure you want to start\? \(y/n\) }{}s ) {
send_pty 'y';
+ } elsif ( $buff =~ m{MikroTik RouterOS} ) {
+ warn "\nERROR: don't know how to talk to MicroTik - ABORTING";
+ exit 0;
}
}