fix up start and stop state
authorTim Shimmin <tes@sgi.com>
Wed, 24 Aug 2005 15:19:05 +0000 (15:19 +0000)
committerTim Shimmin <tes@sgi.com>
Wed, 24 Aug 2005 15:19:05 +0000 (15:19 +0000)
Merge of master-melb:xfs-cmds:23621a by kenmcd.

  fix up start and stop state

tools/auto-qa

index 35e6c532bc57fad20c2ae56c7a430f871baad9cb..338a822475c86779d23e1067b1e2d7e8f4eca577 100755 (executable)
@@ -317,6 +317,8 @@ do
     _log "     (user=$USER, host=$HOST)"
     new_state=""
 
+    start_state=$state
+
     case $state
     in
        *init)
@@ -581,7 +583,7 @@ do
     if [ -n "$stop_state" ]
     then
         # remove hyphen prefixes
-       s1=`echo $state | sed 's/.*-//'`
+       s1=`echo $start_state | sed 's/.*-//'`
        s2=`echo $stop_state | sed 's/.*-//'`
 
        if [ $s1 = $s2 ]