mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 23:42:43 +00:00
mediatek: fix wrong return code in platform_check_image()
Ensure that the platform_check_image() function returns an error code. Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
This commit is contained in:
parent
781a3ae5dc
commit
016a7bd558
@ -95,7 +95,7 @@ platform_check_image() {
|
|||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
nand_do_platform_check "$board" "$1"
|
nand_do_platform_check "$board" "$1"
|
||||||
return 0
|
return $?
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -74,6 +74,7 @@ platform_check_image() {
|
|||||||
totolink,a8000ru|\
|
totolink,a8000ru|\
|
||||||
xiaomi,redmi-router-ax6s)
|
xiaomi,redmi-router-ax6s)
|
||||||
nand_do_platform_check "$board" "$1"
|
nand_do_platform_check "$board" "$1"
|
||||||
|
return $?
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
[ "$magic" != "d00dfeed" ] && {
|
[ "$magic" != "d00dfeed" ] && {
|
||||||
|
Loading…
Reference in New Issue
Block a user