mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-06-18 05:03:56 +02:00
b1bff5cb57
Now that we have a generic sdcard upgrade method, which was copied from the mvebu platform method, we can switch mvebu to the generic method. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
59 lines
1.1 KiB
Bash
Executable File
59 lines
1.1 KiB
Bash
Executable File
#
|
|
# Copyright (C) 2014-2016 OpenWrt.org
|
|
# Copyright (C) 2016 LEDE-Project.org
|
|
#
|
|
|
|
RAMFS_COPY_BIN='fw_printenv fw_setenv'
|
|
RAMFS_COPY_DATA='/etc/fw_env.config /var/lock/fw_printenv.lock'
|
|
REQUIRE_IMAGE_METADATA=1
|
|
|
|
platform_check_image() {
|
|
case "$(board_name)" in
|
|
glinet,gl-mv1000|\
|
|
globalscale,espressobin|\
|
|
globalscale,espressobin-emmc|\
|
|
globalscale,espressobin-ultra|\
|
|
globalscale,espressobin-v7|\
|
|
globalscale,espressobin-v7-emmc)
|
|
sdcard_check_image "$1"
|
|
;;
|
|
*)
|
|
return 0
|
|
;;
|
|
esac
|
|
}
|
|
|
|
platform_do_upgrade() {
|
|
case "$(board_name)" in
|
|
glinet,gl-mv1000|\
|
|
globalscale,espressobin|\
|
|
globalscale,espressobin-emmc|\
|
|
globalscale,espressobin-ultra|\
|
|
globalscale,espressobin-v7|\
|
|
globalscale,espressobin-v7-emmc)
|
|
sdcard_do_upgrade "$1"
|
|
;;
|
|
methode,udpu)
|
|
platform_do_upgrade_uDPU "$1"
|
|
;;
|
|
*)
|
|
default_do_upgrade "$1"
|
|
;;
|
|
esac
|
|
}
|
|
platform_copy_config() {
|
|
case "$(board_name)" in
|
|
glinet,gl-mv1000|\
|
|
globalscale,espressobin|\
|
|
globalscale,espressobin-emmc|\
|
|
globalscale,espressobin-ultra|\
|
|
globalscale,espressobin-v7|\
|
|
globalscale,espressobin-v7-emmc)
|
|
sdcard_copy_config
|
|
;;
|
|
methode,udpu)
|
|
platform_copy_config_uDPU
|
|
;;
|
|
esac
|
|
}
|