On Thu, Sep 27, 2012 at 09:34:12PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: > On 19:22 Thu 27 Sep , Sascha Hauer wrote: > > Traditionally tftp is a command of its own. Since we can > > mount tftp as a filesystem we have duplicated the tftp code, the old > > code is used by the tftp command, the new by the filesystem support. > > This adds a tftp command based on the filesystem support to preserve > > backward compatibility. This allows us to remove the old tftp support > > in the next step. > > > > Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> > > --- > > commands/Kconfig | 8 +++++ > > commands/Makefile | 1 + > > commands/tftp.c | 103 +++++++++++++++++++++++++++++++++++++++++++++++++++++ > why this is c code? > > why not simply do it via script Because c code is robust, cleans up after itself when the user presses ctrl-c and is present also when the environment contains garbage because of broken dependencies. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox