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:11 +0000 (10:29 +0200)
commitd2d3738d9046339d6374a5957cb790d0d9d62456
treeb46965cc149f96bf74475716d1c2d03896aeb60d
parentb8ff46c6d6f403b5881f812d91611b6b5b2167ed
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>
modules/luci-mod-system/htdocs/luci-static/resources/view/system/flash.js