diff options
author | Tar Committer <tar@ocjtech.us> | 2004-06-06 04:12:54 +0000 |
---|---|---|
committer | Tar Committer <tar@ocjtech.us> | 2004-06-06 04:12:54 +0000 |
commit | 654a4573f8fd2b1109e0ded8d9ce061dd3a2093f (patch) | |
tree | e1d9f6fdea04a52f7cfcdc1b3ddf9d49046d20df /bin/jerancid.in | |
parent | 381d322caf5928732f3d478d80e70acfccd67f99 (diff) | |
download | rancid-654a4573f8fd2b1109e0ded8d9ce061dd3a2093f.tar.gz rancid-654a4573f8fd2b1109e0ded8d9ce061dd3a2093f.tar.xz rancid-654a4573f8fd2b1109e0ded8d9ce061dd3a2093f.zip |
Imported from rancid-2.3.1.tar.gz.rancid-2.3.1
Diffstat (limited to 'bin/jerancid.in')
-rw-r--r-- | bin/jerancid.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/jerancid.in b/bin/jerancid.in index 1b72737..50da62b 100644 --- a/bin/jerancid.in +++ b/bin/jerancid.in @@ -1,6 +1,6 @@ #! @PERLV_PATH@ ## -## $Id: jerancid.in,v 1.25 2004/01/11 03:49:13 heas Exp $ +## $Id: jerancid.in,v 1.26 2004/06/04 18:07:37 heas Exp $ ## ## Copyright (C) 1997-2004 by Terrapin Communications, Inc. ## All rights reserved. @@ -203,6 +203,8 @@ sub ShowEnv { next if (/^(\s*|\s*$cmd\s*)$/); next if (/^Please wait/i); return(-1) if (/command authorization failed/i); + # fail if the RP is amid the auto-sync process + return(-1) if (/auto-sync enabled/ && !/in sync/); # skip the temperature goop if (/processor\s+processor/) { @@ -260,6 +262,8 @@ sub DirSlotN { next if (/^(\s*|\s*$cmd\s*)$/); next if (/^Please wait/i); next if (/^system\.log/); + # fail if the RP is amid the auto-sync process + return(-1) if (/active\/standby/ && !/not sync/); ProcessHistory("FLASH","","","!Flash: $_"); } |