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