[Firehol-support] running FireHOL under busybox's ash-shell

Costa Tsaousis costa at tsaousis.gr
Mon Oct 4 18:58:57 BST 2004


Hi,

FireHOL needs array variables. The parentheses define such array variables
in BASH. The problem is that ASH does not support them (at least to the
best of my knowledge - and its man page).

Without array variables, FireHOL should be re-written to use file based
arrays, which will not provide any of the performance advantages ASH
offers (against BASH).

Costa

PS: I am sorry for this...

> I'm trying to use FireHOL on an embedded wireless router (OpenWRT). So far
> I
> could patch it substituting all commands to those available on the router.
>
> Now I ran into the following:
>
> The ash shell complains about unexpected "("s behind the "=" on lines like
> these:
>
> work_realcmd=("(unset)")
>
> local -a inlog=(loglimit "'IN-${work_name}'")
>
> I don't know how this could be handled. I had just striped the outer () of
> the
> first line, but I guess that's not what was really intended.
>
> Kind Regards,
> Christian
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> Use IT products in your business? Tell us what you think of them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
> more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _______________________________________________
> Firehol-support mailing list
> Firehol-support at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/firehol-support
>






More information about the Firehol-support mailing list