Skip to content
Permalink
Browse files

octeon: Evaluate board names in alphabetical order

Signed-off-by: Jonathan Thibault <jonathan@navigue.com>
  • Loading branch information...
FinboySlick authored and blogic committed Dec 4, 2018
1 parent 9ed180b commit e93e2b631884e233a0c00b6348e67115aa6f7f9d
Showing with 5 additions and 5 deletions.
  1. +5 −5 target/linux/octeon/base-files/lib/upgrade/platform.sh
@@ -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`

0 comments on commit e93e2b6

Please sign in to comment.
You can’t perform that action at this time.