On 2024-07-09 17:20:26, Sebastien Lorquet wrote: > On 09/07/2024 17:06, michal.lyszc...@bofc.pl wrote: > > I think I would be good if nuttx had something like /sbin/init that would > > do some very simple service management. Then you could just tick > > "Start NSH after boot up". > > I think you can already do this by writing an init app and using that to > spawn a shell. > > Which is wasteful on small systems since you can start the shell directly > and save memory. > > Also, nsh can execute startup scripts, which are more flexible than your > suggestion. > > A few months ago, these scripts were linked to a rigid romfs automount > system which made the whole thing very cumbersome. > > But it's more flexible now, it was improved and the romfs can be customized. > > Sebastien Yes, I agree that nsh is more flexible. But the problem is that to run these scripts you need nsh. And whole discussion is to make nsh more optional. I suppose it could be enough to move init stuff from nsh to separate program.
-- .-----------------.-------------------.----------------------.-----------------. | Michal Lyszczek | Embedded C, Linux | Company Address | .-. opensource | | +48 727 564 419 | Software Engineer | Akacjowa 10a; 55-330 | oo| supporter | | https://bofc.pl `----.--------------: Brzezinka Sredzka PL | /`'\ & | | GPG FF1EBFE7E3A974B1 | Bits of Code | NIP: 813 349 58 78 |(\_;/) programer | `----------------------^--------------^----------------------^-----------------'
signature.asc
Description: PGP signature