summaryrefslogtreecommitdiff
path: root/files/common/sbin
AgeCommit message (Collapse)Author
2012-06-19move fsm, geolocate, p2ptbl, shuf to external reposplugnprayJan Huwald
- remove fsm, geolocate, p2ptbl, shuf - update .config - update paths (the package install into /usr/sbin instead of /sbin)
2012-05-21update hbbpJan Huwald
This patch handles the update of hbbp in the ffj-feed.
2012-04-27ccfg: sync dnsmasq dhcp config with ccfg p2ptblJan Huwald
2012-04-23splash: move locking to splash_syncJan Huwald
2012-04-23rewrite splash to use a p2ptblJan Huwald
- add p2ptbl splash (see doc/splash.org) - replace all uci queries with p2ptbl queries - centralize splash db modification in /etc/splash.sh - add node to the list of splashed devices upon first use of /etc/splash.sh (shortly after booting) - remove locks in cgi-bin/splash_click
2012-04-23p2ptbl: polishJan Huwald
2012-04-23p2ptbl: add filterJan Huwald
Usage: p2ptbl filter table program [args] will call program with the arguments args and the result of p2ptbl show table on standart input. stdout of program will be used as new table. The filter program may remove lines or edit anything but the key (first row).
2012-03-30add geolocation via wifiJan Huwald
the result is written to uci system.position.{lon,lat,street}
2012-03-06Script now checks gw_mode via batctlJan Huwald
(cherry picked from commit 07a918444ddbd92092a09f53e3cb21e8beed567b)
2012-03-05test_connectivity: get inet interface name via UCIKatze Miau
2011-12-20test if interface is up during /sbin/test_connectivityKatze Miau
Check if the interface is running before trying to ping. This reduces the execution time of test_connectivity in common non-gateway deployments.
2011-12-20remove obsolete files: sbin/{setup_router,test_{gateway,vpn}}Katze Miau
- setup router is obsoleted by the autodiscovery of network status implemented in the previous commits - test_* is superseded by test_connectivity
2011-12-20cosmetic fixes missed in the previous commitKatze Miau
2011-12-20reintegrate splashKatze Miau
- 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
2011-12-20change url encoding to avoid % characterKatze Miau
- Replace the URL encding escape character % with _. This allows passing the encoded value forth and back between our (buggy) server and (buggy) clients without escaping the escape character. - add /sbin/urldecode to reverse the encoding
2011-12-19fsm: don't leak lock fd to child processesKatze Miau
2011-12-19add /sbin/urlencodeKatze Miau
No full URL encoding is performed. Only the characters % &?<>"' are encoded.
2011-12-18fsm: do not lock state file when reading stateKatze Miau
Locking the state file during `fsm get` operations is annoying. And the returned state may be changed anytime after termination, so the caller can not rely on it being up to date anyway.
2011-12-09p2ptbl: print error msgs to stderr instead of stdoutKatze Miau
2011-12-09add usage info to /sbin/test_connectivityKatze Miau
2011-12-06sbin/fsm: fix error msgKatze Miau
2011-12-06add p2ptbl show subcommandKatze Miau
lists an entire table (but without the version of each row)
2011-12-05add sbin/test_connectivityKatze Miau
`test_connectivity <internet|vpn>` returns true iff. one of several probe hosts can be reached over the given interface.
2011-12-05add /sbin/fsmKatze Miau
- implements finite state machine given a definition in /etc/fsm/ - see upcoming doc/ commits for detail
2011-12-03p2ptbl: add gossip protocolKatze Miau
- add `p2ptbl gossip` to distribute tables via udp bcast - add interface option to `p2ptbl update` for immediate communication of updates - add p2ptbl-recv as HBBP-handler to receive table updates p2ptbl-recv has to be symlinked from <HBBP-root>/p2ptbl/<table-name>. It reads the table name from $0 and assumes that all tables are stored in /tmp/p2ptbl/.
2011-12-03add primitive shufKatze Miau
2011-11-30add p2ptblKatze Miau
P2P tables allow to maintain distributed state using a MVCC key-value store. This patch adds the executable for manipulating a table but not the gossip protocol to synchronize it.
2011-10-16add makefile to generate imageswrtbuild
contact: Jan Huwald // Impressum