Gentoo Archives: gentoo-dev

From: "Kevin F. Quinn" <kevquinn@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] New network config for baselayout-ng
Date: Wed, 07 Feb 2007 16:22:15
Message-Id: 20070207172151.20d95774@c1358217.kevquinn.com
In Reply to: Re: [gentoo-dev] New network config for baselayout-ng by Roy Marples
1 On Wed, 7 Feb 2007 15:11:39 +0000
2 Roy Marples <uberlord@g.o> wrote:
3
4 > THE CONFIG FILE HAS TO BE PARSEABLE BY ANY SHELL
5
6 Well, to be precise, it has to be parse-able by whatever runscript (->
7 runscript.sh) uses to source it. Currently that's hard-wired
8 to /bin/bash; you're suggesting it be hard-wired to /bin/sh instead -
9 but it could be configurable as an option to runscript:
10
11 #!/bin/runscript --shell=/bin/sh
12
13 > EVERY SHELL HAS TO BE PATCHED TO UNDERSTAND BASH ARRAYS
14 >
15 > Simply put, this has to work where /bin/sh is any valid POSIX shell.
16 >
17 > #!/bin/sh
18 > . /etc/conf.d/net
19
20 Another idea; have baselayout install different versions of
21 init.d/conf.d and default shell for runscript depending on USE flags
22
23 USE=posix -> install posix 'sh' versions of conf.d/init.d scripts, have
24 runscript default to /bin/sh
25
26 otherwise install the bash versions with runscript defaulting
27 to /bin/bash.
28
29 --
30 Kevin F. Quinn

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] New network config for baselayout-ng Mike Frysinger <vapier@g.o>