#!/bin/sh
. /opt/hmc/bin/functions
valid=0
mkdir -p /tmp/mnt
mount -t ext3 /dev/${HDP}2 /tmp/mnt
cver=$(cat /tmp/mnt/etc/HmcBase | cut -d':' -f2 | cut -d'-' -f1)
umount /tmp/mnt
for vl in `cat /opt/hmc/data/valid_upgrades`
do
       if [ "$cver" == "$vl" ]; then
          valid=1
          break
       fi
done
exit $valid 
