From 40e4da63481450b3adfec1b6aa7c2dad5d329027 Mon Sep 17 00:00:00 2001 From: Tim Niemeyer Date: Fri, 11 Apr 2014 23:52:57 +0200 Subject: [PATCH] bsp: wr841: enable lua (for libremap agent) Signed-off-by: Tim Niemeyer --- bsp/wr841/.config | 3 +- .../root_file_system/etc/config/network.org | 45 +++++++++++++++++++ 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 bsp/wr841/root_file_system/etc/config/network.org diff --git a/bsp/wr841/.config b/bsp/wr841/.config index 5be4a10..4bda986 100644 --- a/bsp/wr841/.config +++ b/bsp/wr841/.config @@ -2197,7 +2197,8 @@ CONFIG_PACKAGE_libxtables=y # CONFIG_PACKAGE_losetup is not set # CONFIG_PACKAGE_lsblk is not set # CONFIG_PACKAGE_luac is not set -# CONFIG_PACKAGE_lua is not set +# CONFIG_PACKAGE_lua-examples is not set +CONFIG_PACKAGE_lua=y # CONFIG_PACKAGE_luci-lib-libremap-altermap is not set CONFIG_PACKAGE_luci-lib-libremap-contact=y CONFIG_PACKAGE_luci-lib-libremap-freifunk=y diff --git a/bsp/wr841/root_file_system/etc/config/network.org b/bsp/wr841/root_file_system/etc/config/network.org new file mode 100644 index 0000000..a87faf1 --- /dev/null +++ b/bsp/wr841/root_file_system/etc/config/network.org @@ -0,0 +1,45 @@ +config interface 'loopback' + option ifname 'lo' + option proto 'static' + option ipaddr '127.0.0.1' + option netmask '255.0.0.0' + +config interface 'wlanmesh' + option mtu '1532' + option proto 'batadv' + option mesh 'bat0' + +config interface 'mesh' + option type 'bridge' + option ifname 'eth0.1 bat0 tap0' + option auto '1' + +config interface 'wan' + option ifname 'eth1' + option proto 'dhcp' + +config interface 'ethmesh' + option ifname 'eth0.3' + option mtu '1532' + option proto 'batadv' + option mesh 'bat0' + +config interface 'bat' + option ifname 'bat0' + option mtu '1500' + +config switch 'eth0' + option enable '1' + option reset '1' + option enable_vlan '1' + +config switch_vlan 'eth0_1' + option device 'eth0' + option vlan '1' + option ports '1 2 0t' + +config switch_vlan 'eth0_3' + option device 'eth0' + option vlan '3' + option ports '3 4 0t' +