Developing lightweight computation at the DSG edge

Commit 9b76589f authored by Victor Oncins's avatar Victor Oncins
Browse files

Merge branch 'autoconfig' of ssh://qmp.cat:221/qmp into autoconfig

parents 150ca180 068da6a2
config 'bmx6' 'luci'
option ignore '0'
#option place 'admin status Bmx6'
option place 'qmp bmx6'
option place 'qmp Mesh'
#option json 'http://127.0.0.1/cgi-bin/bmx6-info?'
option json 'exec:/www/cgi-bin/bmx6-info -s'
......@@ -25,13 +25,13 @@ PKG_SOURCE_PROTO:=git
Public Sources:
PKG_SOURCE_URL:=git://git.bmx6.net/bmx6.git
PKG_REV:=7d0158624af8ab98a1e543ecc421f2090b253ff0
PKG_REV:=873eed6c331476bbdcbe2e7766907aa2a54371f3
Private Sources:
#PKG_SOURCE_URL:=file:///usr/src/bmx6/bmx6-private.git
#PKG_REV:=7d0158624af8ab98a1e543ecc421f2090b253ff0
#PKG_REV:=873eed6c331476bbdcbe2e7766907aa2a54371f3
PKG_VERSION:=r2011101704
PKG_VERSION:=r2011101906
#PKG_RELEASE:=1
#PKG_INSTALL:=1 # this tries to install straight to /usr/sbin/bmx6
......
......@@ -82,6 +82,7 @@ endef
define Package/qmp-small-node/install
$(CP) ./files/* $(1)/
$(CP) ./files/etc/config/qmp $(1)/etc/config/qmp.orig
chmod 755 $(1)/etc/init.d/qmp_autoconf
endef
......
# This file is interpreted as shell script.
# Put your custom iptables rules here, they will
# be executed with each firewall (re-)start.
iptables -t nat -F
iptables -t nat -I POSTROUTING -o eth1 -j MASQUERADE
iptables -t nat -I POSTROUTING -s 192.168.22.0/24 ! -o 192.168.22.0/24
#!/bin/sh /etc/rc.common
# Copyright (C) 2008-2010 OpenWrt.org
START=45
start() {
/etc/firewall.user
}
stop() {
iptables -t nat -F
iptables -F
}
restart() {
stop
start
}
......@@ -440,7 +440,7 @@ qmp_configure_network() {
uci set $conf.lan="interface"
uci set $conf.lan.ifname="$(uci get qmp.interfaces.lan_devices)"
# uci set $conf.lan.type="bridge"
uci set $conf.lan.type="bridge"
uci set $conf.lan.proto="static"
uci set $conf.lan.ipaddr="$(uci get qmp.networks.lan_address)"
uci set $conf.lan.netmask="$(uci get qmp.networks.lan_netmask)"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment