Developing lightweight computation at the DSG edge

Commit c6adde79 authored by Victor Oncins's avatar Victor Oncins
Browse files

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

parents 801fb650 2b3b0a36
__ _ /\/\ _ __
/ _` |/ \| '_ \
| (_| / /\/\ \ |_) |
\__, \/ \/ .__/
|_| |_|
quick MESH project
#!/bin/sh
cat /etc/qmp/qmp.banner >> /etc/banner
echo "Versio ratafia 1.0 (Sat Oct 29 2011) ---------------" >> /etc/banner
echo "Ratafia Recipe: http://en.wikipedia.org/wiki/Ratafia" >> /etc/banner
echo "----------------------------------------------------" >> /etc/banner
#!/bin/sh
cat << QMP >> /etc/firewall.user
IPLOCAL="\$(uci get qmp.networks.lan_address)"
/usr/sbin/iptables -t nat -N captive-portal
/usr/sbin/iptables -t nat -I PREROUTING -i br-lan ! -d \${IPLOCAL} -j captive-portal
/usr/sbin/iptables -t nat -A captive-portal -p tcp --destination-port 80 -j DNAT --to-destination \${IPLOCAL}:8888
QMP
......@@ -254,5 +254,5 @@ option SplashTimeout 690
option SplashDir "/usr/share/tinyproxy/splash/public"
option SplashContinue "/continue/"
option SplashIndex "/index.html"
option SplashNodesDir "/tmp/splash/whitelist"
option SplashNodesDir "/tmp/splash/whitelist/"
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