Matthias Schiffer
72e7ae68fa
gluon-autoupdater: adjust example config for mirror support
2014-01-21 00:10:00 +01:00
Daniel Ehlers
27871c0dc3
gluon-autoupdater: Enable list of mirrors for manifest and firmware.
...
Instead of a single url this patch allows to have a list of urls. So in case
of network instability a router can still reach local mesh-cloud server to pull
a update from. In this stage the autoupdater simply tries every mirror until
one passes all tests.
2014-01-20 23:31:15 +01:00
Daniel Ehlers
cb6c025a7f
gluon-autoupdater: Less global variables.
...
This also removes the need for the cleanup function. Instead the cleanup
code is moved in place.
2014-01-20 23:31:15 +01:00
Daniel Ehlers
f0b63da868
gluon-autoupdater: Refactor code.
...
Move building blocks of the update into seperate functions.
2014-01-20 13:26:58 +01:00
Matthias Schiffer
1b924d6265
gluon-core: use gluon release in package version string
2014-01-20 05:07:55 +01:00
Matthias Schiffer
ee4e896fea
gluon-core: use GLUON_RELEASE from environment
2014-01-20 02:35:21 +01:00
Matthias Schiffer
f36f7bcf26
Merge gluon-release into gluon-core
2014-01-20 01:59:10 +01:00
Matthias Schiffer
8f7b59d787
gluon-simple-tc: add missing defaults on every upgrade
2014-01-20 00:06:55 +01:00
Matthias Schiffer
f9cb8a7258
gluon-mesh-batman-adv: move wifi config to invariant
2014-01-20 00:06:55 +01:00
Matthias Schiffer
59c1900e9a
gluon-location: move information to /etc/config/gluon-location
2014-01-20 00:06:55 +01:00
Matthias Schiffer
1dd9a9a8a1
gluon-autoupdater: no need to provide a default config just to delete it in the initial script
2014-01-20 00:06:55 +01:00
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
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
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
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
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
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
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
1cf4d41cba
gluon-config-mode: use different document root
2014-01-13 20:17:29 +01:00
Matthias Schiffer
d204b0e24f
Remove initscript enable/disable hacks
...
Better configure these properly.
2014-01-13 18:29:00 +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
2e155f9d09
gluon-mesh-vpn-fastd: enable no_rebroadcast on the VPN interface
2014-01-13 01:03:08 +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
Nils Schneider
a2329773eb
gluon-autoupdater: improve manifest.sample
...
Makes manifest.sample use the model instead of the board name as that is
what the script actually expects. Also, a sample signature is added.
2014-01-12 21:18:27 +01:00
Nils Schneider
61171c8c25
gluon-autoupdater: remove dead code
...
Recently the autoupdater contained a case statement to distinguish
between TP-Link WDR3600 and TP-Link WDR4300. This was left over from
previous development versions of autoupdater that relied on the board
name instead of the model. It is thus no longer needed and be removed
safely.
2014-01-12 21:18:27 +01:00
Matthias Schiffer
f2c8be9c48
gluon-config-mode: don't depend on haveged
...
Now that haveged starts before the config mode, there is no need to explicity
depend on it; instead it is just used when specified in the site configuration.
2014-01-12 00:50:43 +01:00
Matthias Schiffer
a259e771e9
gluon-core: fixup WAN interface MAC address setting
2014-01-11 21:31:28 +01:00
Matthias Schiffer
a626c9a165
gluon-core: remove left over 'EOF' from config script
2014-01-11 20:34:58 +01:00
Matthias Schiffer
f969e3a2b1
gluon-ebtables-filter-multicast: correct interface name
2014-01-11 19:27:06 +01:00
Matthias Schiffer
1b9c8dcc0b
Don't accept router advertisements by default
2014-01-11 17:43:35 +01:00
Matthias Schiffer
df00835f4c
Add gluon-radvd package
2014-01-11 16:05:17 +01:00
Matthias Schiffer
ccc1330ebb
next-node: rename config sections
2014-01-11 14:23:27 +01:00
Matthias Schiffer
c14f323058
next-node: remove unused include
2014-01-11 14:11:42 +01:00
Matthias Schiffer
bcb6603333
Disable IPv6 forwarding on br-client
...
Disabling forwarding prevents the node from reacting to the Subnet-Router
anycast address.
2014-01-11 14:01:23 +01:00
Matthias Schiffer
0f5190bc6e
Reimplement next-node configuration based on the new netifd version
2014-01-10 22:34:26 +01:00
Matthias Schiffer
f8cdeaefd9
Add ebtables filters from the legacy firmware
2014-01-10 21:49:18 +01:00
Matthias Schiffer
9015c01c34
Allow telnet login in config mode again
2014-01-09 10:06:36 +01:00
Matthias Schiffer
6c952a513a
Add gluon-lock-password package and make config mode depend on it
2014-01-09 09:58:59 +01:00
Matthias Schiffer
1be0a7667f
Make package version depend on the site config version where necessary
2014-01-04 09:19:13 +01:00
Nils Schneider
c03843eac1
gluon-luci-autoupdater: simple luci module for autoupdater
2013-11-28 21:49:34 +01:00
Nils Schneider
0b57802354
configmode -> gluon-config-mode
2013-11-28 20:00:37 +01:00
Nils Schneider
c3fcb81a4b
ssh keys
2013-11-28 20:00:37 +01:00
Nils Schneider
29b480522e
basic admin mode
2013-11-28 20:00:37 +01:00
Nils Schneider
be79b874c5
gluon-config-mode: show hostname on reboot page. fixes #8
2013-11-28 19:16:39 +01:00
Nils Schneider
4fdcc218c5
autoupdater: fix initial upgrade script
2013-11-11 11:45:12 +01:00
Matthias Schiffer
4521362ce3
gluon-core: clean up upgrade main script
2013-10-09 21:56:32 +02:00
Nils Schneider
15aafe47c8
gluon-config-mode: texts from mkm
2013-10-09 21:13:48 +02:00
Matthias Schiffer
3c8d9ed4eb
gluon-simple-tc: add newline to end of example config
2013-10-09 20:35:55 +02:00
Nils Schneider
9b69ac2845
gluon-simple-tc: initial.pl: sort keys before creating config
2013-10-04 10:47:31 +02:00
Nils Schneider
75ac64ca20
gluon-config-mode: simple-tc ifname must be mesh-vpn, not mesh_vpn
2013-10-03 23:26:00 +02:00
Nils Schneider
0d1e3e144b
gluon-config-mode: site.conf: configmode -> config_mode
2013-10-03 23:04:41 +02:00
Nils Schneider
2468154ad1
gluon-config-mode: add simple-tc settings for mesh_vpn
2013-10-03 23:00:47 +02:00
Nils Schneider
05633089c4
gluon-config-mode: forgot to rename uci config in button script
2013-10-03 22:48:54 +02:00
Nils Schneider
0a6c21e167
gluon-config-mode: forgot to rename uci config in button script
2013-10-03 22:12:47 +02:00
Nils Schneider
903d157550
gluon-simple-tc: create initial config from site.conf
2013-10-03 21:10:42 +02:00
Matthias Schiffer
7edb775444
gluon-mesh-batman-adv: clean up config script
2013-10-03 19:02:06 +02:00
Matthias Schiffer
8b069954a0
gluon-core: clean up uci config
2013-10-03 18:54:59 +02:00
Matthias Schiffer
6729bf37ef
gluon-mesh-vpn-fastd: clean up configuration script
2013-10-03 18:41:45 +02:00
Matthias Schiffer
e73f79f392
Move some more configuration into the corrent packages, correctly configure multiple radios
2013-10-03 18:04:03 +02:00
Matthias Schiffer
a5c042c294
Add gluon-simple-tc package
2013-10-03 13:59:45 +02:00
Nils Schneider
c73d52d77f
gluon-config-mode: fix upgrade script /lib/gluon/ugprade/config-mode/
2013-10-03 13:10:18 +02:00
Nils Schneider
71b8be79f4
gluon-config-mode: rename config-mode to gluon-config-mode
2013-10-02 22:56:51 +02:00
Matthias Schiffer
f22f0e44f6
gluon-mesh-vpn-fastd: always enable fastd
2013-10-02 20:33:32 +02:00
Matthias Schiffer
0a9b811477
gluon-cron: always enable cron when it is installed
2013-10-02 20:33:32 +02:00
Matthias Schiffer
9c0db9e291
gluon-ebtables: always enable ebtables when they are installed
2013-10-02 20:33:32 +02:00
Nils Schneider
cf6c51ee5e
gluon-config-mode: rename configmode to config-mode (except in lua variables where it is still called configmode)
2013-10-02 15:24:14 +02:00
Nils Schneider
ae5277ff9f
gluon-location is a dependency of config-mode, not autoupdater
2013-10-02 15:00:07 +02:00
Nils Schneider
7c64af8c7e
gluon-config-mode: various fixes (default values, autoupdater changes)
2013-10-02 14:46:39 +02:00
Nils Schneider
b6484440e1
gluon-location: store lat/lon in system config
2013-10-02 14:18:42 +02:00
Nils Schneider
61a384f214
Revert "gluon-mesh-vpn-fastd: set mesh_vpn.enabled flag"
...
This reverts commit baf6d14160ab15069f68161d0d1556c369cf0cbd.
2013-10-02 14:02:24 +02:00
Nils Schneider
f637e923f5
gluon-autoupdater: new branch specification
...
It is now possible to specific multiple branches like this:
config branch stable
option url ...
list pubkey ...
...
config branch testing
...
and select one in autoupdater.settings:
config autoupdater settings
option branch "stable"
2013-10-02 13:33:47 +02:00
Nils Schneider
09855e0c80
gluon-mesh-vpn-fastd: set mesh_vpn.enabled flag
2013-10-02 13:19:39 +02:00
Nils Schneider
d866400ef9
gluon-autoupdater: rename script to autoupdater (was autoupdate)
2013-10-02 13:18:48 +02:00
Matthias Schiffer
54ba93f4bf
gluon-mesh-batman-adv: configure batman-adv
2013-10-01 21:38:21 +02:00
Matthias Schiffer
00a97602a4
gluon-core: upgrade: fix directory movement
2013-10-01 21:38:21 +02:00
Matthias Schiffer
568cfbf398
gluon-core: ensure version stamp dir existence
2013-10-01 21:38:21 +02:00
Matthias Schiffer
d508728da6
gluon-core: fix typo
2013-10-01 21:38:21 +02:00
Matthias Schiffer
7771cd9f2e
gluon-core: make 001-sysconfig executable
2013-10-01 21:38:21 +02:00
Matthias Schiffer
2d93cad89d
gluon-core: always handle core scripts first
2013-10-01 21:38:21 +02:00
Matthias Schiffer
fa1774a4e6
Remove batman-adv specific parts of gluon-core
2013-10-01 21:38:21 +02:00