[PATCH] Add flash_lock and flash_unlock applets.
Thierry Reding
thierry.reding at avionic-design.de
Fri May 22 07:20:54 UTC 2009
* Tito wrote:
[...]
> Hi,
> please use libbb functions as shown above.
> It seems to me that due to the fact that the applets share
> a lot of code they could be merged into one applet and at runtime
> you can check:
>
> if (applet_name[6] == 'u') {
> /* do flash unlock stuff */
> }else {
> /* do flash lock stuff */
> }
Wouldn't that break bb_show_usage()? Can I alternatively put both of the
applets' main functions into one source file and factor out shared code?
> Ciao,
> Tito
Thierry
More information about the busybox
mailing list