I have seen in the C sources of luci2-rpc-base that there are the same functions implemented as in rpc-sys. (upgrade_start, upgrade_clean. upgrade_test, factory, reboot and password). I have written the Sysupgrade Modul (ready for PR) but i don´t know which rpc backend I should use (luci2 or rpc-sys)?
If you ask me :-) I would use the rpc-sys calls, because they are more general and not luci2 specific. If so the Makefile for luci2-ui-base must be extended with rpc-sys dependency. and the duplicated code in luci2 should be deleted.
@jow-
I have seen in the C sources of luci2-rpc-base that there are the same functions implemented as in rpc-sys. (upgrade_start, upgrade_clean. upgrade_test, factory, reboot and password). I have written the Sysupgrade Modul (ready for PR) but i don´t know which rpc backend I should use (luci2 or rpc-sys)?
If you ask me :-) I would use the rpc-sys calls, because they are more general and not luci2 specific. If so the Makefile for luci2-ui-base must be extended with rpc-sys dependency. and the duplicated code in luci2 should be deleted.
Kind regards
Flo