luci-mod-system: ignore empty /proc/mtd on flash page
authorJo-Philipp Wich <jo@mein.io>
Wed, 22 Jul 2020 08:20:42 +0000 (10:20 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 22 Jul 2020 08:29:45 +0000 (10:29 +0200)
commit8750495992b079b699c7d61b5967779fda1c29f7
tree32bb431dc56298e62185b3de8abc8ad7c76743f2
parent91ac7214bec1cc6fa7394b072db7a346f35c1559
luci-mod-system: ignore empty /proc/mtd on flash page

A present, but empty /proc/mtd causes validation on the flash page to fail,
preventing any other operation.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit d2d3738d9046339d6374a5957cb790d0d9d62456)
modules/luci-mod-system/htdocs/luci-static/resources/view/system/flash.js