On Wed, 2010-01-13 at 13:10, Daniel Dickinson wrote:
> I was discussing the changes to preinit, mount_root, and and firstboot
> that I am working on, with Jo (xMff), specifically to ask where he
> thought I should put code that was common to the reworked mount_root and
> firstboot.
> 
> In that discussion we came to the conclusion that non-config files
> (i.e.g code that's integral to the system) really shouldn't be in /etc
> because backing up /etc, flashing and then restore /etc could
> potentially overwrite files that are required code in the system.
> 
> Therefore I'm planning on putting my shared code under /lib/boot (and
> preinit functions (where order matters) under /lib/boot/preinit, and
> firstboot (likewise) under /lib/boot/firstboot).  However there is a
> change that Jo and I thought would be a good idea, but which definitely
> requires discussion, and that is putting /etc/functions.sh
> under /lib/functions/functions.sh (or somesuch), with a symlink
> from /etc/function.sh.

On standard Debian there is /lib/init directory which holds functions.sh

I don't know if that is from LSB or just Debian convention.
 
> Also /lib/functions could be used for shared functions that are not used
> often enough to really belong in functions.sh, but make sense to be
> shared.

-- 
Kind regards,  Milan
--------------------------------------------------
Arvanta, IT Security        http://www.arvanta.net
Please do not send me e-mail containing HTML code.

Attachment: signature.asc
Description: Digital signature

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to