#!/bin/sh
# 
# upgd_status script
# call the init script of the upgrade process to check
# its current status
#
# Changelog:
#
#   - Tue Dec 18 2012 - Jerry ZHOU <jerry.zhou@alcatel-lucent.com>
#   * PR261951: Reduce time of unavailability during boot time
#

#PR261951 jerryzh+
statusfile=/config/upgrade/status

[[ ! -e $statusfile ]] && return 0

source $statusfile

case "$STEP" in
    pre0|6) ret=0;;
    *) ret=1;;
esac

return $ret
#PR261951 jerryzh-
