diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-10-02 12:59:23 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-10-02 13:02:04 +0200 |
commit | 020ac1e08d02e37e49a3b96ab2db246dd7051dd2 (patch) | |
tree | b6bd5b45b1ac42559019c5ba928782c79321af3a /modules/luci-base | |
parent | fb740f2c792696c64b3bd7115b25cdba32687003 (diff) |
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>
Diffstat (limited to 'modules/luci-base')
-rw-r--r-- | modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json b/modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json index 182f249884..54caa74363 100644 --- a/modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json +++ b/modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json @@ -34,7 +34,6 @@ "/proc/mtd": [ "read" ], "/proc/partitions": [ "read" ], "/proc/sys/kernel/hostname": [ "read" ], - "/sys/devices/virtual/mtd/*/name": [ "read" ], "/sys/devices/virtual/ubi/*/name": [ "read" ] }, "ubus": { |