fix up start and stop state

Merge of master-melb:xfs-cmds:23621a by kenmcd.

  fix up start and stop state
This commit is contained in:
Tim Shimmin
2005-08-24 15:19:05 +00:00
parent a5959aafca
commit c57cc6fb97
+3 -1
View File
@@ -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 ]