MAC and IP addresses are switched. This makes the gluon-client-bridge package more useful for different routing protocols that don't need a unique address on the client bridge. As a side effect, gluon-radvd is now using the next-node address, which had been considered before, but was dismissed to avoid having gluon-radvd depend on gluon-next-node and gluon-mesh-batman-adv. This will be useful for announcing default routes via gluon-radvd. One downside is that this introduces a minor dependency on batman-adv in gluon-respondd: the hotplug script that checked for the client interface before will now check for local-node. This doesn't really matter: for mesh protocols without a local-node interface, the check will do nothing (which makes sense, as there is no interface to bind to for mesh-wide respondd).
19 lines
294 B
Lua
Executable File
19 lines
294 B
Lua
Executable File
#!/usr/bin/lua
|
|
|
|
local uci = require 'luci.model.uci'
|
|
local c = uci.cursor()
|
|
|
|
|
|
c:delete('alfred', 'alfred')
|
|
c:section('alfred', 'alfred', 'alfred',
|
|
{
|
|
interface = 'local-node',
|
|
mode = 'slave',
|
|
batmanif = 'bat0',
|
|
start_vis = '1',
|
|
run_facters = '0',
|
|
}
|
|
)
|
|
|
|
c:save('alfred')
|