mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-18 05:15:28 +08:00
31 lines
405 B
Bash
31 lines
405 B
Bash
![]() |
REQUIRE_IMAGE_METADATA=1
|
||
|
|
||
|
platform_do_upgrade() {
|
||
|
local board=$(board_name)
|
||
|
local file_type=$(identify $1)
|
||
|
|
||
|
case "$board" in
|
||
|
*)
|
||
|
nand_do_upgrade "$1"
|
||
|
;;
|
||
|
esac
|
||
|
}
|
||
|
|
||
|
PART_NAME=firmware
|
||
|
|
||
|
platform_check_image() {
|
||
|
local board=$(board_name)
|
||
|
local magic="$(get_magic_long "$1")"
|
||
|
|
||
|
[ "$#" -gt 1 ] && return 1
|
||
|
|
||
|
case "$board" in
|
||
|
*)
|
||
|
nand_do_platform_check "$board" "$1"
|
||
|
return 0
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
return 0
|
||
|
}
|