[asterisk-users] Changing menuselect values from CLI and not TUI
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Tue Apr 14 13:12:27 CDT 2009
On Tue, Apr 14, 2009 at 10:28:42AM +1000, David Klaverstyn wrote:
> Hi All,
>
> I'm in the process of writing an install script and I would like to change some settings for the install process but I don't want the user to go into menuselect and make the changes manually.
>
> Is there a way to make the changes to menuselect from the CLI?
>
> As an example, selecting the iLBC codec.
> menuselect codec ilbc on
On the Debian package I generally patch source files and XML SPECs to
set / reset the "defaltenable" options.
The problem with patching the output of menuselect is that menuselect is
run on each tim you un 'make'. This is why I never bothered adding such
an option to dummy-select.
OTOH, in dummy-select the configuration is straight-forward:
echo enable codec_ilbc >build_tools/conf
Menuselect uses the same file as both an input and an output, and this
makes it very confusing and error-prone.
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
More information about the asterisk-users
mailing list