gemini: Support sysupgrade on DIR-685
[openwrt/openwrt.git] / target / linux / gemini / base-files / lib / upgrade / platform.sh
1 REQUIRE_IMAGE_METADATA=1
2
3 platform_check_image() {
4 local board=$(board_name)
5
6 case "$board" in
7 dlink,dir-685)
8 return 0
9 ;;
10 esac
11
12 echo "Sysupgrade is not yet supported on $board."
13 return 1
14 }
15
16 platform_do_upgrade() {
17 local board=$(board_name)
18
19 case "$board" in
20 dlink,dir-685)
21 PART_NAME=firmware
22 default_do_upgrade "$ARGV"
23 ;;
24 esac
25 }