Install image as e.g. 3.1.2 instead of 3.1.2r0 if there is no revision file.

This commit is contained in:
Ben Gras 2006-01-18 12:37:45 +00:00
parent 6fab0ee47b
commit c806c7ba7c

View file

@ -67,10 +67,12 @@ hdboot)
revision=`cat revision 2>/dev/null`
oldrev=$revision
target="${version}r${revision}"
rrevision=r$revision
if [ -z "$revision" ]
then
revision=0
rrevision=""
elif [ -f $rootdir/boot/image/$target ]
then
if [ $rootdir/boot/image/$target -newer image ]
@ -81,7 +83,7 @@ hdboot)
fi
revision=`expr $revision + 1`
fi
target="${version}r${revision}"
target="${version}${rrevision}"
set -- `ls -t $rootdir/boot/image`