uvol: switch to /sys/class/ubi
authorDaniel Golle <daniel@makrotopia.org>
Wed, 15 Feb 2023 04:04:12 +0000 (04:04 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 15 Feb 2023 04:06:36 +0000 (04:06 +0000)
commit3d86716b4f83aa827e0b28ba6d27a9c71855eb96
treee7c0b60dfb96ca85c28072eebc9c6f61d9aa54d4
parent7aa180412c8b422f7ecb9fde1e46f3cdb0e9f48b
uvol: switch to /sys/class/ubi

Instead of /sys/devices/virtual/ubi which will no longer be available
in future kernels, switch to /sys/class/ubi.
While at it fix unrelated arithmetic syntax error by guarding the
affected expression to not run on an empty string.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
utils/uvol/Makefile
utils/uvol/files/ubi.uc
utils/uvol/files/uvol.defaults