Developing lightweight computation at the DSG edge

Commit 8b459040 authored by p4u's avatar p4u
Browse files

Comming back to non-reboot init configuration. It should work...

parent 01a4d3d7
......@@ -46,6 +46,7 @@ define Package/qmp-small-node
+olsrd +olsrd-mod-txtinfo +olsrd-mod-httpinfo +olsrd-mod-watchdog \
+olsrd-mod-arprefresh +olsrd-luci \
+luci-i18n-catalan +luci-i18n-spanish +luci-i18n-french \
+firewall \
+babeld \
+ip \
+ndisc6 +rdisc6 +rdnssd \
......
# 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
}
......@@ -30,22 +30,23 @@ configure() {
. $QMP_DIR/qmp_wireless.sh
qmp_configure_wifi_initial
qmp_configure_wifi
# wifi
wifi
echo "[Configuring networking]"
. $QMP_DIR/qmp_functions.sh
qmp_configure
# /etc/init.d/qmp-fix-vlan start
# /etc/init.d/network restart
/etc/init.d/network restart
# ifup -a
sleep 5
QMP_HOSTNAME=$(uci get system.@system[0].hostname)
echo "Update hostname for: '$QMP_HOSTNAME'"
echo "$QMP_HOSTNAME" > /proc/sys/kernel/hostname
# /etc/init.d/olsrd restart
# /etc/init.d/bmx6 restart
/etc/init.d/olsrd restart
/etc/init.d/bmx6 restart
touch "$CONTROL_FILE"
echo "Done, rebooting system to complete configuration"
reboot
# reboot
}
start() {
......
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