ipq40xx: add target
[openwrt/openwrt.git] / target / linux / ipq40xx / base-files / lib / upgrade / platform.sh
1 PART_NAME=firmware
2 REQUIRE_IMAGE_METADATA=1
3
4 RAMFS_COPY_BIN='fw_printenv fw_setenv'
5 RAMFS_COPY_DATA='/etc/fw_env.config /var/lock/fw_printenv.lock'
6
7 platform_check_image() {
8 return 0;
9 }
10
11 platform_do_upgrade() {
12 case "$(board_name)" in
13 openmesh,a42)
14 PART_NAME="inactive"
15 platform_do_upgrade_openmesh "$ARGV"
16 ;;
17 *)
18 default_do_upgrade "$ARGV"
19 ;;
20 esac
21 }
22
23 blink_led() {
24 . /etc/diag.sh; set_state upgrade
25 }
26
27 append sysupgrade_pre_upgrade blink_led