ubox: only start log to file when filesystem has been mounted
authorDaniel Golle <daniel@makrotopia.org>
Sun, 30 Jan 2022 19:39:21 +0000 (19:39 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 30 Jan 2022 20:19:37 +0000 (20:19 +0000)
commit88baf6ce2c880149bd1c1d8ddacc7bc61dd4f18b
tree2b6b41ad8204a84f8361cdc5d5d08d1b584b7ac1
parent6d76ec38721f964ae9ac65d80ef8628199986fa4
ubox: only start log to file when filesystem has been mounted

If log_file is on an filesystem mounted using /etc/config/fstab we have
to wait for that to happen before starting the logread process.
Inhibit the start of the file-writer process and use a mount trigger to
fire it up once the filesystem actually becomes available.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/system/ubox/files/log.init