octeon: Evaluate board names in alphabetical order

Signed-off-by: Jonathan Thibault <jonathan@navigue.com>
openwrt-19.07
Jonathan Thibault 2018-12-04 14:59:31 -05:00 committed by John Crispin
parent 9ed180b000
commit e93e2b6318
1 changed files with 5 additions and 5 deletions

View File

@ -62,12 +62,12 @@ platform_do_upgrade() {
[ -b "${rootfs}" ] || return 1
case "$board" in
erlite)
kernel=sda1
;;
er)
kernel=mmcblk0p1
;;
erlite)
kernel=sda1
;;
*)
return 1
esac
@ -82,8 +82,8 @@ platform_check_image() {
local board=$(board_name)
case "$board" in
erlite | \
er)
er | \
erlite)
local tar_file="$1"
local kernel_length=`(tar xf $tar_file sysupgrade-$board/kernel -O | wc -c) 2> /dev/null`
local rootfs_length=`(tar xf $tar_file sysupgrade-$board/root -O | wc -c) 2> /dev/null`