2016-07-20 13:44:50 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
PART_NAME=firmware
|
2017-12-17 14:00:00 +00:00
|
|
|
REQUIRE_IMAGE_METADATA=1
|
2016-07-20 13:44:50 +00:00
|
|
|
|
|
|
|
platform_check_image() {
|
2017-05-12 20:36:07 +00:00
|
|
|
local board=$(board_name)
|
2016-07-20 13:44:50 +00:00
|
|
|
|
|
|
|
case "$board" in
|
2018-09-21 22:38:38 +00:00
|
|
|
wd,mybooklive)
|
2017-12-01 21:41:11 +00:00
|
|
|
mbl_do_platform_check "$1"
|
2016-07-20 13:44:54 +00:00
|
|
|
return $?;
|
|
|
|
;;
|
2016-07-20 13:44:50 +00:00
|
|
|
*)
|
2017-12-17 14:00:00 +00:00
|
|
|
return 0
|
2016-07-20 13:44:50 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
|
|
|
platform_do_upgrade() {
|
2017-05-12 20:36:07 +00:00
|
|
|
local board=$(board_name)
|
2016-07-20 13:44:50 +00:00
|
|
|
|
|
|
|
case "$board" in
|
2018-09-21 22:38:38 +00:00
|
|
|
wd,mybooklive)
|
2016-07-20 13:44:54 +00:00
|
|
|
mbl_do_upgrade "$ARGV"
|
|
|
|
;;
|
2017-12-18 19:32:18 +00:00
|
|
|
meraki,mr24|\
|
|
|
|
meraki,mx60|\
|
|
|
|
netgear,wndr4700)
|
|
|
|
nand_do_upgrade "$1"
|
|
|
|
;;
|
2016-07-20 13:44:50 +00:00
|
|
|
*)
|
|
|
|
default_do_upgrade "$ARGV"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
|
|
|
platform_copy_config() {
|
2017-05-12 20:36:07 +00:00
|
|
|
local board=$(board_name)
|
2016-07-20 13:44:50 +00:00
|
|
|
|
|
|
|
case "$board" in
|
2017-12-17 14:00:01 +00:00
|
|
|
wd,mybooklive|\
|
|
|
|
wd,mybooklive-duo)
|
2016-07-20 13:44:54 +00:00
|
|
|
mbl_copy_config
|
|
|
|
;;
|
|
|
|
|
2016-07-20 13:44:50 +00:00
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|