#!/sbin/sh -


vers=`uname -r`

if [ "$vers" = "5.6" ]
	then
		vers=26
	else 
		vers=25
fi


		if [ -s /usr/openv/hsm/bin/bpbkar.b4patch107580-01 ]
		then
       			/usr/bin/mv /usr/openv/hsm/bin/bpbkar.b4patch107580-01 /usr/openv/hsm/bin/bpbkar 
       		fi
       			
		if [ -s /usr/openv/hsm/bin/convert_ihand.b4patch107580-01 ]
		then
       			/usr/bin/mv /usr/openv/hsm/bin/convert_ihand.b4patch107580-01 /usr/openv/hsm/bin/convert_ihand 
       		fi
       		
		if [ -s /usr/openv/hsm/bin/install.hsm.b4patch107580-01 ]
		then
       			/usr/bin/mv /usr/openv/hsm/bin/install.hsm.b4patch107580-01 /usr/openv/hsm/bin/install.hsm 
       		fi
       		
		if [ -s /usr/openv/hsm/bin/tar.b4patch107580-01 ]
		then
       			/usr/bin/mv /usr/openv/hsm/bin/tar.b4patch107580-01 /usr/openv/hsm/bin/tar 
       		fi
       		
		if [ -s /usr/openv/hsm/bin/migreconstruct.b4patch107580-01 ]
		then
       			/usr/bin/mv /usr/openv/hsm/bin/migreconstruct.b4patch107580-01 /usr/openv/hsm/bin/migreconstruct 
       		fi
       		
		if [ -s /usr/openv/hsm/bin/admincmd/migcompress.b4patch107580-01 ]
		then
       			/usr/bin/mv /usr/openv/hsm/bin/admincmd/migcompress.b4patch107580-01 /usr/openv/hsm/bin/admincmd/migcompress 
       		fi
       		
		if [ -s /usr/openv/hsm/bin/admincmd/migcopy.b4patch107580-01 ]
		then
       			/usr/bin/mv /usr/openv/hsm/bin/admincmd/migcopy.b4patch107580-01 /usr/openv/hsm/bin/admincmd/migcopy 
       		fi
       		
		if [ -s /usr/openv/hsm/bin/admincmd/migdbclean.b4patch107580-01 ]
		then
       			/usr/bin/mv /usr/openv/hsm/bin/admincmd/migdbclean.b4patch107580-01 /usr/openv/hsm/bin/admincmd/migdbclean 
       		fi
       		
		if [ -s /usr/openv/hsm/bin/goodies/convert_ihand.sh.b4patch107580-01 ]
		then
       			/usr/bin/mv /usr/openv/hsm/bin/goodies/convert_ihand.sh.b4patch107580-01 /usr/openv/hsm/bin/goodies/convert_ihand.sh 
       		fi
       		
		if [ -s /usr/openv/hsm/bin/solaris_dm_26/migattr.o.b4patch107580-01 ]
		then
       			/usr/bin/mv /usr/openv/hsm/bin/solaris_dm_26/migattr.o.b4patch107580-01 /usr/openv/hsm/bin/solaris_dm_26/migattr.o 
       		fi
       		      		       		
		if [ -s /usr/openv/hsm/bin/admincmd/migd.b4patch107580-01 ]
		then
       			/usr/bin/mv /usr/openv/hsm/bin/admincmd/migd.b4patch107580-01 /usr/openv/hsm/bin/admincmd/migd 
       		fi
       		
		if [ -s /usr/openv/hsm/bin/admincmd/migtrans.b4patch107580-01 ]
		then
       			/usr/bin/mv /usr/openv/hsm/bin/admincmd/migtrans.b4patch107580-01 /usr/openv/hsm/bin/admincmd/migtrans 
       		fi
       		
		if [ -s /usr/openv/hsm/bin/solaris_25/mig.o.b4patch107580-01 ]
		then
       			/usr/bin/mv /usr/openv/hsm/bin/solaris_25/mig.o.b4patch107580-01 /usr/openv/hsm/bin/solaris_25/mig.o 
       		fi
       		
		if [ -s /usr/openv/hsm/bin/solaris_25u/mig.o.b4patch107580-01 ]
		then
       			/usr/bin/mv /usr/openv/hsm/bin/solaris_25u/mig.o.b4patch107580-01 /usr/openv/hsm/bin/solaris_25u/mig.o 
       		fi
       		
		if [ -s /usr/openv/hsm/bin/pfconvert.b4patch107580-01 ]
		then
       			/usr/bin/mv /usr/openv/hsm/bin/pfconvert.b4patch107580-01 /usr/openv/hsm/bin/pfconvert 
       		fi
       		
		if [ -s /usr/openv/hsm/bin/admincmd/pfconvert.sh.b4patch107580-01 ]
		then
       			/usr/bin/mv /usr/openv/hsm/bin/admincmd/pfconvert.sh.b4patch107580-01 /usr/openv/hsm/bin/admincmd/pfconvert.sh 
       		fi
       		
       		if [ -s /usr/openv/hsm/bin/solaris_26/mig.o.b4patch107580-01 ]
		then
       			/usr/bin/mv /usr/openv/hsm/bin/solaris_26/mig.o.b4patch107580-01 /usr/openv/hsm/bin/solaris_26/mig.o 
       		fi
       		
		if [ -s /usr/openv/hsm/bin/solaris_26m/mig.o.b4patch107580-01 ]
		then
       			/usr/bin/mv /usr/openv/hsm/bin/solaris_26m/mig.o.b4patch107580-01 /usr/openv/hsm/bin/solaris_26m/mig.o 
       		fi
       		


echo ""
echo "\nFinish Restoring orginal files "
