autoupdate: fix autoupdate script

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2012-10-11 15:32:35 +02:00
parent eaee4c297a
commit 0da664bdcf

View File

@ -92,6 +92,10 @@ if [ ! -f /var/lock/update.lock ]; then
[ "$THIS_MINOR" -lt "$NEW_MINOR" -a \
"$THIS_MAJOR" -eq "$NEW_MAJOR" -a \
"$NEW_MINOR" -lt 90 ] || \
[ "$THIS_MINOR" -lt "$NEW_MINOR" -a \
"$THIS_MAJOR" -eq "$NEW_MAJOR" -a \
"$THIS_MINOR" -ge 90 -a \
"$NEW_MINOR" -ge 90 ] || \
[ "$THIS_MINOR" -ge 90 -a \
"$NEW_MINOR" -lt 90 -a \
$(( $THIS_MAJOR + 1 )) -eq "$NEW_MAJOR" ]; then