[PATCH v2] base-files: restore status of system-services after sysupgrade
Martin Schiller
ms at dev.tdt.de
Tue Jan 12 02:25:09 EST 2021
On 2021-01-11 23:07, Sven Roederer wrote:
> Restore the status of the system-services after sysupgrade.
> Create a file with the status of all known services and keep it during
> upgrade. After upgrade run a uci-default script to restore every
> single service.
Doing the restore in an uci-default script is to late, because then you
are already in the procd rcS helper "loop" and new added init links
won't get called.
Also, have you thought about a backup/restore of the configuration?
The whole thing should/must work there as well.
I would do the restore at the end of the pre-init stage.
Martin
More information about the openwrt-devel
mailing list