From 2c4823e2b6c5a408add0d2b4167f8b02f8c0fc53 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sat, 7 Jul 2018 19:15:45 +0200 Subject: [PATCH] exit 0 on MikroTik RouterOS --- dell-switch.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dell-switch.pl b/dell-switch.pl index e3c3b0d..8ac74a5 100755 --- 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; } } -- 2.20.1