On 18.03.2014 21:11, Laszlo Papp wrote:
> On Tue, Mar 18, 2014 at 7:59 PM, Xabier Oneca  --  xOneca
> <[email protected]> wrote:
>> Usually scripts in /etc/init.d use /etc/default/* as config values
>> (some distros, even using them as main config files). The scripts that
>> Laszlo posted fit that pattern.
> 
> Not quite; actually "/etc/default" is more like a Debian, et al,
> pattern. OpenWrt will use something. Yocto uses something else, etc.
> And for what it is worth, buildroot is also strange with
> "/etc/default/ntpd" without any busybox indication.

Speaking of Yocto, our Yocto-based firmware contains 9 config files by
default in /etc/default, one of which is /etc/default/busybox-syslog.
The latter may have disappeared in more recent versions of Yocto, but
anyway, I just want to show you that /etc/default isn't used by Debian only.

Actually, it isn't important which location you use for these files. As
long as you use a simple KEY=VALUE format, you can use them in
shell-based initscripts, systemd and upstart, at least.

Regarding the script you posted, I'd remove the export statement from
the config file to make it look less like a shell script (and to match
the format above).

Regards,
Andreas
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to