[ptxdist] Proper way to modify an ETC file

2012-03-13 Thread Jerry Kirk
Within my embedded project I'd like to modify Busybox's FTPD command to allow 
more general access to the filesystem. I'm not quite sure the right way to do 
this. I've been considering

1. A local patch to the busybox file that gets copied
2. A new package that runs SED and modifies the busybox file in /etc or copies 
a new file into the root

What is the right way to make local changes for my project to the root 
filesystem of the embedded system?



-- 
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] Proper way to modify an ETC file

2012-03-13 Thread Michael Olbrich
On Tue, Mar 13, 2012 at 05:21:15PM +, Jerry Kirk wrote:
 Within my embedded project I'd like to modify Busybox's FTPD command to allow 
 more general access to the filesystem. I'm not quite sure the right way to do 
 this. I've been considering
 
 1. A local patch to the busybox file that gets copied
 2. A new package that runs SED and modifies the busybox file in /etc or 
 copies 
 a new file into the root
 
 What is the right way to make local changes for my project to the root 
 filesystem of the embedded system?

Which file do you want to modify? /etc/inetd.conf.d/ftpd? You can provide a
local version for this in your BSP: projectroot/etc/inetd.conf.d/ftpd

$ ptxdist drop busybox targetinstall
4 ptxdist go
[...]

Take a look at the quickstart manual[1]. This and more is described there.

Michael

[1] 
http://www.pengutronix.de/software/ptxdist/appnotes/OSELAS.BSP-Pengutronix-Generic-arm-Quickstart.pdf

-- 
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- |

-- 
ptxdist mailing list
ptxdist@pengutronix.de