luci-mod-system: flash.js: fix "rootfs_data" partition detection
authorJo-Philipp Wich <jo@mein.io>
Wed, 2 Oct 2019 10:59:23 +0000 (12:59 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 2 Oct 2019 11:02:04 +0000 (13:02 +0200)
commit020ac1e08d02e37e49a3b96ab2db246dd7051dd2
treeb6bd5b45b1ac42559019c5ba928782c79321af3a
parentfb740f2c792696c64b3bd7115b25cdba32687003
luci-mod-system: flash.js: fix "rootfs_data" partition detection

The `/sys/devices/virtual/mtd/` information is not available on all
devices so rely on the contents of `/proc/mtd` instead to check for
the existence of the `rootfs_data` partition.

Fixes: #3136
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json
modules/luci-mod-system/htdocs/luci-static/resources/view/system/flash.js