add makefile to generate images
add makefile to generate images
Merge branch 'master' of git.freifunk-jena.de:freifunk/ffj-buildroot-v2

Conflicts:
	Makefile
add sbin/test_connectivity

`test_connectivity <internet|vpn>` returns true iff. one of several
probe hosts can be reached over the given interface.
add usage info to /sbin/test_connectivity
add FSM inetable

- implemented according to documentation
- almost no tests so far
fix fsm inetable trans/queen.enter
fsm inetable: sync mesh iface w/ uci, use batctl gw off, reduce redundancy

- add mesh_add/del_ipv4 to set/unset IPv4 addresses of mesh iface; the
  address is set using ifconfig to avoid ifudown+ifup but also updated
  in UCI to maintain a consistent state
- use this function in queen, ghost and robinson state transitions
- use `batctl gw off` in robinson state: this allows to deliever local
  DHCP replies while dropping the idea of announcing fake gateways
- ghost.leave reuses queen.leave
fsm inetable: add uhttpd state helpers, enable service httpd at boot

Add function to enable/disable/change the uhttpd uci config state. Use
these functions to start the service httpd, listening on the
link-local IPv6 addresses of br-lan and br-mesh.
fsm inetable: change httpd instances in queen/ghost/robinson states

- update the redirection uhttpd config and www-root to redirect all
  incoming request to a url specified by /tmp/redirection_target
- use this to implement robinson and splash redirection during
  robinson and queen/ghost states, respectively
- change the service httpd to listen on the public IPv4 address
  available on the mesh interface in those states.

Missing is the
- iptable based redirection
- already referenced /sbin/urlencode
add fake name resolution to robinson state, add /etc/firewall.use, use cloud config

1. When in robinson state the router now resolves all domain names to
   an IP in the robinson fake net (as defined in
   /etc/config/cloud). All tcp traffic to this network (and the rest
   of the internet) is redirected to a local webserver.
2. The ip addresses in robinson state are now generated in the ranges
   given in /etc/config/cloud
reintegrate splash

- add cronjob for splash_sync (every minute for debugging; to be
  increased)
- add redirection for unsplashed users in queen.enter, remove it in
  queen.leave
- add /etc/splash.sh to centralize functionality used in
  /sbin/splash_sync and /www/service/*splash*
- make splash_sync to use a transactional update approach: insert
  iptable rules for all splashed MACs into a new chain, then replace
  old and new chain; this avoids downtime even if splash_sync is slow
- remove allowed services for splashed users; this is intended to not
  move old cruft over to new code; if any of the those services shall
  be reenabled, it should happen in /etc/firewall.user
- make /sbin/splash_sync aware of the current state of FSM inetable
  (read via /sbin/fsm with optional command line override); this
  allows to unconditionally call splash_sync via cron
- add locks to all places where the splash state is touched
- remove multiple escaping/quoting/encoding problems in splash cgi
  scripts
- reenable link to the page the user initially demanded in
  /www/service/cgi-bin/splash_click
test if interface is up during /sbin/test_connectivity

Check if the interface is running before trying to ping. This reduces
the execution time of test_connectivity in common non-gateway
deployments.
remove all hardcoded references to FFJ IP range, use /etc/config/cloud instead

Replace the last bits of hardcoded FFJ IP range outside /etc/config -
residing in fsm inetable state transitions - with IP ranges calculated
from /etc/config/cloud.
Merge branch 'plugnpray' into ffrhein

Conflicts:
	files/common/sbin/splash_sync
	files/common/www/service/cgi-bin/splash_click
	files/common/www/service/iframe.html
*Patched /sbin/test_connectivity to read wan ifname from uci
*Added n2n to be started by a queen
*Script now starts n2n again
*Script stops n2n
*Scripts now starts n2n