Commit Graph

4287 Commits

Author SHA1 Message Date
Nils Schneider
8e73ff90a0 gluon-autoupdater: typo corrected 2014-01-19 23:19:55 +01:00
Nils Schneider
4fef2e5e11 Merge pull request #7 from FreifunkBremen/master
gluon-autoupdater: get random number from /dev/urandom
2014-01-19 13:40:13 -08:00
Jan-Philipp Litza
7cdf3708f0 gluon-autoupdater: get random number from urandom
The approach with awk's rand() wasn't really random between across
devices: When srand() was called without arguments, time() was used as
seed, which of course is the same on all devices when the script is
called via cron at HH:00:00.

This patch instead uses /dev/urandom as source of random (we don't need
cryptographically strong random numbers, so urandom is just fine) but
still uses awk for the comparison as busybox's ash cannot deal with
floats in $(())
2014-01-19 22:36:49 +01:00
Matthias Schiffer
086efed428 gluon-alfred: add chosen gateway and load average 2014-01-19 21:44:26 +01:00
Matthias Schiffer
9b7e30cf64 Merge branch 'site-modules' of https://github.com/FreifunkBremen/gluon 2014-01-19 17:40:46 +01:00
Jan-Philipp Litza
ca95374ea1 Enable the site config to include own package feeds 2014-01-19 17:37:46 +01:00
Matthias Schiffer
84fabec9e4 Update gluon packages 2014-01-18 22:11:19 +01:00
Matthias Schiffer
74493b2ba5 gluon-alfred: run every minute
The run frequency and exact time affect the alfred announce interval, so we can
just run it every minute to supply alfred with the most up-to-date data.
2014-01-18 21:56:05 +01:00
Matthias Schiffer
bf414bcf65 packages/routing: alfred: adjust intervals 2014-01-18 21:54:29 +01:00
Matthias Schiffer
c3ddb2216f packages/routing: alfred: fix socket fd leak 2014-01-18 21:17:33 +01:00
Matthias Schiffer
92138a60fa Update gluon packages 2014-01-18 21:17:17 +01:00
Matthias Schiffer
8b4474e18f gluon-mesh-batman-adv: set gateway mode to client 2014-01-18 19:44:02 +01:00
Jan-Philipp Litza
54620d6231 autoupdater: Use awk instead of grep+head+tail to split manifest 2014-01-17 16:09:34 +01:00
Matthias Schiffer
4b8cc47c05 Update gluon packages 2014-01-16 23:59:21 +01:00
Matthias Schiffer
4ca8a35fc9 gluon-mesh-batman-adv: set bat0 MAC address to primary address 2014-01-16 23:57:42 +01:00
Jan-Philipp Litza
4b61062636 alfred: add more traffic statistics
+ mgmt and forward counters
+ packet in addition to byte counters for everything
2014-01-16 23:47:41 +01:00
Jan-Philipp Litza
7fdd0300b2 alfred: Add --no-sleep option to send immediately 2014-01-16 23:46:54 +01:00
Matthias Schiffer
bce8d83f7f Update gluon packages 2014-01-16 22:49:47 +01:00
Jan-Philipp Litza
692f093d21 alfred: clean up delay code 2014-01-16 22:42:02 +01:00
Jan-Philipp Litza
cc2ef851c7 alfred: add random node-specific delay before sending 2014-01-16 22:36:09 +01:00
Jan-Philipp Litza
50782f759e alfred: make traffic counters absolute
After a lenghty discussion, we settled on absolute vs. relative values.
Main reasons:

* stateless implementation on node possible
* convertable to relative values by differentiaion on receiver
* missed transmissions only decrease granularity, whereas relative
  values would introduce wrong numbers on integration if values are
  missed
2014-01-16 22:34:57 +01:00
Jan-Philipp Litza
6bf44622dc alfred: add statistics (uptime+traffic) 2014-01-16 16:50:25 +01:00
Jan-Philipp Litza
5a17b69547 CONFIG_ATH_USER_REGD=y 2014-01-15 20:10:21 +01:00
Matthias Schiffer
6f05279fe4 Update gluon packages 2014-01-14 19:49:38 +01:00
Matthias Schiffer
72b27ea2e0 gluon-mesh-vpn-fastd: enable secure handshakes 2014-01-14 19:37:15 +01:00
Matthias Schiffer
1c9dec091e gluon-radvd: don't run as root 2014-01-14 19:34:07 +01:00
Matthias Schiffer
5241565a79 gluon-mesh-vpn-fastd: don't run as root 2014-01-14 18:46:17 +01:00
Matthias Schiffer
3275c92f72 gluon-core: add function to add users 2014-01-14 18:19:51 +01:00
Matthias Schiffer
91c869d88f Update gluon packages 2014-01-14 01:53:31 +01:00
Matthias Schiffer
f99767fb9f Add firewall rules
gluon-mesh-batman-adv should not be used without firewall to prevent forwarding
of packets from the mesh to the wan interface.

For some reason, the firewall package won't work at all without
kmod-ipt-nathelper.
2014-01-14 01:50:59 +01:00
Matthias Schiffer
a479b85d14 Update gluon packages 2014-01-13 22:58:23 +01:00
Matthias Schiffer
9598d30fba Makefile: remove unused definition 2014-01-13 22:58:07 +01:00
Matthias Schiffer
1cf4d41cba gluon-config-mode: use different document root 2014-01-13 20:17:29 +01:00
Matthias Schiffer
231c03bb6d Update gluon packages 2014-01-13 18:40:39 +01:00
Matthias Schiffer
d204b0e24f Remove initscript enable/disable hacks
Better configure these properly.
2014-01-13 18:29:00 +01:00
Matthias Schiffer
30f4c8ee12 Remove initscript enable hack 2014-01-13 18:23:25 +01:00
Matthias Schiffer
604e3caceb gluon-mesh-batman-adv: disable client interface in dnsmasq 2014-01-13 18:02:45 +01:00
Jan-Philipp Litza
a3f2eb6bc7 alfred: name -> hostname 2014-01-13 17:11:41 +01:00
Jan-Philipp Litza
59616e8d77 alfred: improved readability 2014-01-13 17:09:15 +01:00
Jan-Philipp Litza
e901ceda71 alfred: split up firmware info, include fastd version+status 2014-01-13 17:06:47 +01:00
Jan-Philipp Litza
d0e3cbc8bc alfred: added more information to send, reformatted location
location is object with latitude and longitude
added:
* firmware
* autoupdater status
* hardware model
* primary mac address
* mesh IPv6 addresses
2014-01-13 16:10:03 +01:00
Nils Schneider
5f976809a1 gluon-autoupdater: strip trailing - from model 2014-01-13 12:45:55 +01:00
Matthias Schiffer
4194faee0a Update gluon packages 2014-01-13 01:13:04 +01:00
Matthias Schiffer
2e155f9d09 gluon-mesh-vpn-fastd: enable no_rebroadcast on the VPN interface 2014-01-13 01:03:08 +01:00
Matthias Schiffer
d39fca1126 Add batman-adv no_rebroadcast patch from legacy firmware 2014-01-13 00:50:44 +01:00
Matthias Schiffer
dc10f216f2 Update gluon packages 2014-01-12 22:58:35 +01:00
Matthias Schiffer
d1f01a588f Clean up gluon-alfred
* Merge gluon-alfred-ffmap into gluon-alfred
* Use gluon-crond instead of alfred's "facter" mechanism based on the broken busybox crond
2014-01-12 22:37:28 +01:00
Jan-Philipp Litza
dece1f4122 added gluon-alfred and gluon-alfred-ffmap 2014-01-12 22:06:50 +01:00
Matthias Schiffer
293c64e723 gluon-autoupdater: use the new get_model function 2014-01-12 21:40:19 +01:00
Matthias Schiffer
13e3d7ff79 gluon-core: add sh file to get model name etc. 2014-01-12 21:33:44 +01:00