Install image as e.g. 3.1.2 instead of 3.1.2r0 if there is no revision file.
This commit is contained in:
parent
6fab0ee47b
commit
c806c7ba7c
1 changed files with 3 additions and 1 deletions
|
@ -67,10 +67,12 @@ hdboot)
|
||||||
revision=`cat revision 2>/dev/null`
|
revision=`cat revision 2>/dev/null`
|
||||||
oldrev=$revision
|
oldrev=$revision
|
||||||
target="${version}r${revision}"
|
target="${version}r${revision}"
|
||||||
|
rrevision=r$revision
|
||||||
|
|
||||||
if [ -z "$revision" ]
|
if [ -z "$revision" ]
|
||||||
then
|
then
|
||||||
revision=0
|
revision=0
|
||||||
|
rrevision=""
|
||||||
elif [ -f $rootdir/boot/image/$target ]
|
elif [ -f $rootdir/boot/image/$target ]
|
||||||
then
|
then
|
||||||
if [ $rootdir/boot/image/$target -newer image ]
|
if [ $rootdir/boot/image/$target -newer image ]
|
||||||
|
@ -81,7 +83,7 @@ hdboot)
|
||||||
fi
|
fi
|
||||||
revision=`expr $revision + 1`
|
revision=`expr $revision + 1`
|
||||||
fi
|
fi
|
||||||
target="${version}r${revision}"
|
target="${version}${rrevision}"
|
||||||
|
|
||||||
set -- `ls -t $rootdir/boot/image`
|
set -- `ls -t $rootdir/boot/image`
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue