2014-07-13 22:12:56 +00:00
|
|
|
#
|
2016-10-13 12:52:20 +02:00
|
|
|
# Copyright (C) 2014-2016 OpenWrt.org
|
|
|
|
# Copyright (C) 2016 LEDE-Project.org
|
2014-07-13 22:12:56 +00:00
|
|
|
#
|
|
|
|
|
2017-07-10 18:37:25 +02:00
|
|
|
RAMFS_COPY_BIN='fw_printenv fw_setenv'
|
2017-05-12 22:36:07 +02:00
|
|
|
RAMFS_COPY_DATA='/etc/fw_env.config /var/lock/fw_printenv.lock'
|
2016-11-21 11:59:37 +01:00
|
|
|
REQUIRE_IMAGE_METADATA=1
|
2014-07-13 22:12:56 +00:00
|
|
|
|
|
|
|
platform_check_image() {
|
2019-03-28 18:07:09 +01:00
|
|
|
case "$(board_name)" in
|
2019-06-25 16:03:48 -04:00
|
|
|
cznic,turris-omnia|globalscale,espressobin|globalscale,espressobin-emmc|globalscale,espressobin-v7|globalscale,espressobin-v7-emmc|\
|
|
|
|
marvell,armada8040-mcbin|solidrun,clearfog-base-a1|solidrun,clearfog-pro-a1)
|
2019-07-14 18:59:59 +02:00
|
|
|
platform_check_image_sdcard "$1"
|
2019-03-28 18:07:09 +01:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
esac
|
2014-07-13 22:12:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
platform_do_upgrade() {
|
2017-05-12 22:36:07 +02:00
|
|
|
case "$(board_name)" in
|
2019-05-11 19:37:34 +02:00
|
|
|
linksys,caiman|linksys,cobra|linksys,mamba|linksys,rango|linksys,shelby|linksys,venom)
|
2019-07-14 19:03:19 +02:00
|
|
|
platform_do_upgrade_linksys "$1"
|
2014-07-13 22:12:56 +00:00
|
|
|
;;
|
2019-06-07 15:50:50 +02:00
|
|
|
cznic,turris-omnia|globalscale,espressobin|globalscale,espressobin-emmc|globalscale,espressobin-v7|globalscale,espressobin-v7-emmc|\
|
|
|
|
marvell,armada8040-mcbin|solidrun,clearfog-base-a1|solidrun,clearfog-pro-a1)
|
2019-07-14 19:03:19 +02:00
|
|
|
platform_do_upgrade_sdcard "$1"
|
2017-04-06 20:13:31 +02:00
|
|
|
;;
|
2014-07-13 22:12:56 +00:00
|
|
|
*)
|
2019-07-14 19:03:19 +02:00
|
|
|
default_do_upgrade "$1"
|
2014-07-13 22:12:56 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
2016-09-26 12:02:40 +02:00
|
|
|
platform_copy_config() {
|
2017-05-12 22:36:07 +02:00
|
|
|
case "$(board_name)" in
|
2019-05-11 19:37:34 +02:00
|
|
|
linksys,caiman|linksys,cobra|linksys,mamba|linksys,rango|linksys,shelby|linksys,venom)
|
2017-06-01 18:39:12 +02:00
|
|
|
platform_copy_config_linksys
|
|
|
|
;;
|
2019-06-25 16:03:48 -04:00
|
|
|
cznic,turris-omnia|globalscale,espressobin|globalscale,espressobin-emmc|globalscale,espressobin-v7|globalscale,espressobin-v7-emmc|\
|
|
|
|
marvell,armada8040-mcbin|solidrun,clearfog-base-a1|solidrun,clearfog-pro-a1)
|
2019-07-14 22:08:58 +02:00
|
|
|
platform_copy_config_sdcard
|
2016-09-26 12:02:40 +02:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|