luci-mod-system: flash.js: add mtdblock name to filename
authorKristian Skramstad <kristian+github@83.no>
Sun, 12 May 2024 18:41:31 +0000 (20:41 +0200)
committerPaul Donald <newtwen+github@gmail.com>
Tue, 14 May 2024 12:37:51 +0000 (14:37 +0200)
commit08b8b1d0e3bd541d18b66f52b903371dfe38ca95
treea453faa90f2b191042297fed4e8d7762294f7224
parent05c6a0887f88dd65b8176686f3aee5bd05d8771a
luci-mod-system: flash.js: add mtdblock name to filename

When you download a partition, the name is hostname+mtdX.bin
and that can be confusing if you go back and try to remember
what mtdX was if you have 10+ partitions.

So let us add the partition name to the filename like:
hostname.mtdX.boot.bin
hostname.mtdX.firmware.bin

Note: If there is a better, easier and simpler way to do the
same thing, please let me know.

Signed-off-by: Kristian Skramstad <kristian+github@83.no>
modules/luci-mod-system/htdocs/luci-static/resources/view/system/flash.js