mtd-utils: add ubihealthd to nand-utils
authorDaniel Golle <daniel@makrotopia.org>
Sat, 16 Nov 2024 15:29:24 +0000 (15:29 +0000)
committerChristian Marangi <ansuelsmth@gmail.com>
Mon, 18 Nov 2024 14:18:39 +0000 (15:18 +0100)
commit7e287b563aa1043a1af54d5e2b0bd96326371732
tree657b3587ed2ba811b244288e5dbdbbec1b105df8
parenta5d23e3aee9bd616044c3eadfe2dbcad5d18b163
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>
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]