Re: [B.A.T.M.A.N.] [PATCH 2/2] alfred: Bundle a lua script for autogenerating bat-hosts file

Gui Iribarren
2013-10-17T07:43:47Z

On 10/14/2013 07:52 PM, Simon Wunderlich wrote:
>
>> Provide a lua script that uses alfred to propagate and collect all
>> interface mac + names, then generate a /tmp/bat-hosts file.
>> If there's already a (probably hand-made) /etc/bat-hosts it won't overwrite
>> it but if there's none, it will symlink /etc/bat-hosts -> /tmp/bat-hosts
>>
>> Signed-off-by: Gui Iribarren <gui@altermundi.net>
>> Thanks-to: Joshua Head <joshua.head@outlook.com>
>
> Thanks a lot, this sounds like a really good idea! As this will be part of the
> openwrt package, I'd like to ask to make the bat-hosts.lua script optional and
> selectable (like you can turn on/off vis). I'll do the same for other
> (optional) services like gps.
>
> Also, do you need any additional dependencies for lua?

not that i know of; an early version depended on nixio lib, but Joshua
Head from vt-dev refactored the relevant functions and dropped that dep :)