mtd-utils: add ubihealthd to nand-utils
authorDaniel Golle <daniel@makrotopia.org>
Sat, 16 Nov 2024 15:29:24 +0000 (15:29 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 26 Nov 2024 12:23:06 +0000 (12:23 +0000)
commit39d6d318a6c3427ef7fc91b14bdbd316837f1446
treec24818aa43b80e8d8d2802f2fc113602a2a63b7a
parent0de3c201b139979dd22b4f723846b85c4ad6f170
mtd-utils: add ubihealthd to nand-utils

Add ubihealthd to the nand-utils package, auto-create UCI config for
each UBI device and launch the daemon on boot.

The default time interval between scrubbing a random PED is 120 seconds
which means that a fully used 128 MiB flash chip gets scrubbed in about
a day and a half. The interval can be adjusted in UCI using the
'interval' option.

Suggested-by: Rodrigo Balerdi <lanchon@gmail.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Link: https://github.com/openwrt/openwrt/pull/16973
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit 7e287b563aa1043a1af54d5e2b0bd96326371732)
package/utils/mtd-utils/Makefile
package/utils/mtd-utils/files/ubihealthd.defaults [new file with mode: 0644]
package/utils/mtd-utils/files/ubihealthd.init [new file with mode: 0644]