#!/bin/sh
OTHER_INSTALLED="false"
OTHER_INSTALLED="$(otherinst)"
if [ "$OTHER_INSTALLED" == "true" ]
then
    if [ -f /mnt/ramdisk/pfu.progress ]
    then
        echo "PFU progress detected."
        exit 1
    fi
    # the following asks the progress tracker if pfu or pfu/codeload is going on on either controller
    # and then returns 0 for no and 1 or 2 for yes. depends on which stage of PFU we're in.
    PFU=`getprogress both xml | grep "ACTIVITY=\"pfu" | wc -l`
    return $PFU
else
    echo "Other MC is not present"
    exit 0
fi
