diff options
Diffstat (limited to 'target/linux/gemini/base-files/lib')
-rw-r--r-- | target/linux/gemini/base-files/lib/upgrade/platform.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/target/linux/gemini/base-files/lib/upgrade/platform.sh b/target/linux/gemini/base-files/lib/upgrade/platform.sh new file mode 100644 index 0000000000..4fd169d0de --- /dev/null +++ b/target/linux/gemini/base-files/lib/upgrade/platform.sh @@ -0,0 +1,25 @@ +REQUIRE_IMAGE_METADATA=1 + +platform_check_image() { + local board=$(board_name) + + case "$board" in + dlink,dir-685) + return 0 + ;; + esac + + echo "Sysupgrade is not yet supported on $board." + return 1 +} + +platform_do_upgrade() { + local board=$(board_name) + + case "$board" in + dlink,dir-685) + PART_NAME=firmware + default_do_upgrade "$ARGV" + ;; + esac +} |