X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=dell-switch.pl;h=efff4ba71000d9322e275cf03609461aec259fda;hb=c2126556f5bf3653323e9aa8874c2732733df2c8;hp=9b0c3f723c552fd4498a252326109e0574ebb146;hpb=a15f54b1b5714dd8dbd75109e27d3eb3e17839cf;p=dell-switch diff --git a/dell-switch.pl b/dell-switch.pl index 9b0c3f7..efff4ba 100755 --- a/dell-switch.pl +++ b/dell-switch.pl @@ -107,6 +107,8 @@ while() { } elsif ( $buff =~ m{\QOverwrite file [startup-config] ?[Yes/press any key for no]....\E} ) { send_pty "y"; $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'; } }