luci-base: rpcd: handle swap entries in getBlockDevices
authorJo-Philipp Wich <jo@mein.io>
Fri, 28 Apr 2023 12:55:09 +0000 (14:55 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 28 Apr 2023 12:55:09 +0000 (14:55 +0200)
commitad3509bf3bb5dfa79af634c841d584408068fb0a
treea9df49464e9233dd6ca5ed1fe71202961014c6e7
parentd25d5c28b7daddd9cfdf650b15642f1e89b2c2e5
luci-base: rpcd: handle swap entries in getBlockDevices

Add entries from `/proc/swaps` to the result array as well in order to
let the ui properly deal with swap files.

Fixes: #6350
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/root/usr/share/rpcd/ucode/luci