Index: trunk/tools/eam/rawfix.20230221/src/check.rawfix.sh
===================================================================
--- trunk/tools/eam/rawfix.20230221/src/check.rawfix.sh	(revision 42430)
+++ trunk/tools/eam/rawfix.20230221/src/check.rawfix.sh	(revision 42445)
@@ -49,5 +49,5 @@
 
   set mynight = $2
-  mysql $DBOPTS -e "select dateobs, state from nights where (dateobs = '$mynight')"
+  mysql $DBOPTS -e "select * from nights where (dateobs = '$mynight')"
   exit 0
 endif
@@ -74,31 +74,4 @@
   if ($mystate == "md5chk.fail")   goto good_state
 
-  # stage 2:
-  if ($mystate == "fixchip_s2.new")   goto good_state
-  if ($mystate == "fixchip_s2.done")  goto good_state
-  if ($mystate == "fixchip_s2.fail")  goto good_state
-  if ($mystate == "md5sum_s2.new")    goto good_state
-  if ($mystate == "md5sum_s2.done")   goto good_state
-  if ($mystate == "md5sum_s2.fail")   goto good_state
-  if ($mystate == "md5chk_s2.new")    goto good_state
-  if ($mystate == "md5chk_s2.done")   goto good_state
-  if ($mystate == "md5chk_s2.fail")   goto good_state
-
-  # stage 3:
-  if ($mystate == "fixchip_s3.new")   goto good_state
-  if ($mystate == "fixchip_s3.done")  goto good_state
-  if ($mystate == "fixchip_s3.fail")  goto good_state
-  if ($mystate == "ckchip_s3.new")    goto good_state
-  if ($mystate == "ckchip_s3.done")   goto good_state
-  if ($mystate == "ckchip_s3.fail")   goto good_state
-
-# disable the rsyncs stages: run in directory from b-node 
-#  if ($mystate == "rsync_s1.new")  goto good_state
-#  if ($mystate == "rsync_s1.done") goto good_state
-#  if ($mystate == "rsync_s1.fail") goto good_state
-#  if ($mystate == "rsync_s2.new")  goto good_state
-#  if ($mystate == "rsync_s2.done") goto good_state
-#  if ($mystate == "rsync_s2.fail") goto good_state
-
   echo "ERROR: unknown mode $mystate"
   exit 2
@@ -106,5 +79,5 @@
   good_state:
   set t = `date +%T..%N`
-  mysql $DBOPTS -e "select dateobs, curtime() as timestamp from nights where (state = '$mystate')" | awk -v T=$t '(NR == 1){print $0}(NR > 1){print $1, T}'
+  mysql $DBOPTS -e "select dateobs, iter from nights where (state = '$mystate')" | awk -v T=$t '(NR == 1){print $0, "timestamp"}(NR > 1){print $1, $2, T}'
   exit 0
 endif
