Commit Graph

4396 Commits

Author SHA1 Message Date
Matthias Schiffer
3ea770db73
ath79-generic: swap interfaces on TP-Link WBS210 v2 (#2385)
Swap the interfaces so than the PoE input port LAN0 is used for WAN and
config mode, and LAN1 becomes LAN.

To this end, the code previously used for ar71xx and removed in
commit 9fdc57c175 ("treewide: drop ar71xx platform specific code") is
reintroduced.

Fixes #2384
2022-01-28 19:45:34 +01:00
Matthias Schiffer
578daf5f87
gluon-core: remove obsolete config file 2022-01-23 14:44:07 +01:00
Matthias Schiffer
12127813c5
gluon-core: move preserve_channels setting to /etc/config/gluon
/etc/config/gluon-core is used for nothing else.

As /etc/config/gluon uses a named wireless section, also change the
get_first() to get().
2022-01-23 14:44:06 +01:00
Matthias Schiffer
b68a07e930
gluon-mesh-vpn-fastd: merge secret generation setup into main upgrade script
There wasn't really a reason to have a separate script to set a single
value.

In addition, the old script was using the identifier 'c' instead of
'uci' for the UCI cursor. Following the convention of the other scripts
is helpful so it is easy to grep for all uses of a certain config file/
option.
2022-01-23 14:44:06 +01:00
Matthias Schiffer
d8f6ed2406
gluon-node-info: remove obsolete migration/fixup 2022-01-23 14:44:06 +01:00
Matthias Schiffer
225e8692bd
gluon-radvd: remove obsolete migration 2022-01-23 14:44:06 +01:00
Matthias Schiffer
c530070e96
gluon-mesh-vpn-tunneldigger: remove obsolete migration 2022-01-23 14:44:06 +01:00
Matthias Schiffer
84f4c164f4
gluon-setup-mode: remove obsolete migration 2022-01-23 14:44:06 +01:00
Matthias Schiffer
c7e38fdc2c
contrib: lsupgrade: optimize output
- Use printf instead of echo for better portability
- Print whole path without reordering components
- Deduplicate code
2022-01-23 14:44:06 +01:00
Matthias Schiffer
c0afb9cc39
contrib: lsupgrade: do not search the OpenWrt "packages" feed
Iterating over all the package directories in the OpenWrt feed takes a
while, even though it doesn't contain any upgrade scripts. Skip the
whole directory.
2022-01-23 14:44:06 +01:00
Matthias Schiffer
1e50966b84
kernel: drop obsolete ebtables patches
We are on Linux 5.4, so these patches for Linux 4.14 don't do anything.
2022-01-23 11:39:02 +01:00
Matthias Schiffer
0db3c58329
modules: update OpenWrt base
97b95ef8b918 uci: update to the latest master

Replace the downstream UCI patch with a proper OpenWrt 21.02 backport.
2022-01-23 11:36:08 +01:00
David Bauer
2924afe562
Merge pull request #2378 from freifunk-gluon/master-updates
modules: updates
2022-01-21 21:10:34 +01:00
Martin Weinelt
5e1d46e2b7 modules: update gluon
5bca036 pretty-hostname: instantly apply hostname
a85fa33 treewide: change Github URLs from git:// to https:// (#252)
2022-01-20 12:44:27 +01:00
Martin Weinelt
afc9d6b235 modules: update routing
c2e138d olsrd: add ubus ipc integration to olsrd
7d07ef9 CI: fix runtime testing for non master branch
61cd00c naywatch: introduce kick-count
440e7af naywatch: fix mode without watchdog
c8b613e olsrd: fix meshing via wireguard tunnels
2022-01-20 12:44:26 +01:00
Martin Weinelt
6149057072 modules: update packages
444b64e36 cryptsetup: update to version 2.4.3
a259a4aaa git: update to version 2.34.1
0cdffbaf9 crowdsec: update from upstream latest release 1.2.3
031fbb16a smcroute: update to 2.5.5
fcf163335 smcroute: update to 2.5.4
c7470d1d8 wg-installer: switch to ubus call for olsrd hotplug
8c3ce87fd wg-installer: rework iproute2 commands
3f88edfa5 2to3: add package host tool
bb09bc37b CI: fix runtime testing for non master branch
bbd3d70cd i2pd: Update to 2.40.0 and update package sources
19d32003c i2pd: remove unneeded functions.sh
8d150985c i2pd: Update to 2.38.0
5ee9fb98d i2pd: update to 2.36
d0bb48741 mariadb: Add sudo dependency
f4d8f9c98 mariadb: Check and fix datadir owner issues during upgrade
7a3f41af4 mariadb: update to version 10.4.22
d3e6dc51e mg: bump to 7.0
15b41a675 zerotier: add configuration reload trigger
2bca94d83 netdata: Update init script to use -D rather than -nd
c7fef6db5 atlas-probe: update to version 2.4.1
98c1fe435 atlas-sw-probe: update to version 5040
1a40e3c89 crowdsec-firewall-bouncer: update to 0.0.21
432140a36 crowdsec: update to 1.2.2
b5443ccdf apache: fixup apxs
19451ec86 apache: security bump to 2.4.51
6fe1b64e7 wg-installer: fix shell typo
f21f39cfd wg-installer: allow defining link costs for hotplugs
995251746 wg-installer: private key as parameter
652ebf1a3 wg-installer: generate new keys for every connection
5f517cc58 golang: Update to 1.17.6
92e357ebd wg-installer: fix using symlinks for conf files
caa72e5c5 fail2ban: fix 2to3 error
b3764db33 wg-installer: fix cleanup script
1e179f92a haveged: update to 1.9.17
d36455277 wg-installer: fix get_usage function
49f898044 wg-installer: delete old interfaces
335ad2a4d wg-installer: fix dependencies
f2745c85a wg-installer: fix typo in cleanup function
1de352b60 wg-installer: fix ipv4 meshing via olsr
efb5bdf07 wg-installer: add link-local to client interface
bf1c780af wg-installer: add cleanup script
032d0157c wg-installer: add ipv4 support
33d6705d2 getdns: remove maintainer
b1dfbf975 getdns: bump to 1.7.0
f755690b0 wg-installer: add hotplug script for olsr
85b6d750d radicale2: Update to 2.1.12
2415cbb9b radicale: Update to 1.1.7
4e1bfe4e9 inadyn: update to 2.9.1
2022-01-20 12:44:24 +01:00
Martin Weinelt
da6965c391 modules: update openwrt
1472a8fa42 procd: update to git HEAD
015f170fe6 procd: update to git HEAD
cd5ba0cfbb ustream-ssl: variants conflict with each other
6eced97ce4 lantiq: flag FritzBox 7360 family buttons active-low
b59f3b08b4 firmware-utils: tplink-safeloader: fix Archer A7v5 factory flashing from vendor fw > v1.1.x
43d105ec2a kernel: bump 5.4 to 5.4.171
1db847488d ath79: rb912: fix pll init issues
6ced8cad8e kernel: backport workaround for Realtek RTL8672 and RTL9601C chips
77ee281a3e kernel: add kmod-ledtrig-pattern
aa2de44cdd kernel: fix AutoLoad parameter for uleds module
bc37a699e5 kernel: add kmod-leds-uleds
96b5962704 mvebu: remove patch that was applied into linux stable
5beaa75d94 openssl: bump to 1.1.1m
93842b20dc bcm4908: include ATF in bootfs images
18b10db2f1 arm-trusted-firmware-bcm63xx: add ATF for Broadcom devices
739e359241 kernel: backport support for multicolor & RGB LEDs to 5.4
608c7dccf2 bcm4908: sysupgrade: add pkgtb format support
b6ed2641df busybox: backport dd support for iflag=count_bytes
7e4485fd5b bcm4908: add uboot-envtools to default packages
4cd5d11fa3 bcm4908: add fdt-utils to default packages
1d4a28d5e1 dtc: support printing binary data with fdtget
ce5d0378bf dtc: import package for dtc & fdt from packages feed
6292d1e354 bcm4908: sysupgrade: refactor handling different firmware formats
a00854040d ipq40xx: specify FritzBox 7530 LAN port label numbers
27225e3538 kernel: ath10k: provide a build variant for small RAM devices
104774c3b0 mvebu: puzzle: wan LED and fix default network
47d82f0710 mvebu: enable Aquantia phy driver for Puzzle devices
164ed6069c mvebu: add id for AQR112 Ethernet phy variants
daf4301071 mvebu: import patch enabling AQR113 PHY
ee5750043c mvebu: import patch enabling AQR112 and AQR412 PHY
a03840a1a9 mvebu: puzzle-m901: add LEDs, fan and reset button
280bb7c10c mvebu: puzzle-m902: add GPIO reset button
1e5df4d550 mvebu: puzzle-mcu: improve led driver
99a1e88297 mvebu: puzzle-m902: add driver for MCU driving LEDs, fan and buzzer
3b14ddf8d2 build: fix opkg install step for large package selection
2022-01-20 12:44:18 +01:00
Luflosi
55e95dd49b
ath79-generic: add support for TP-Link Archer A7 v5 (#2374) 2022-01-14 23:20:22 +01:00
Matthias Schiffer
a9f11e36bd
Merge pull request #2373 from mkg20001/infobinary
gluon-core: add gluon info binary
2022-01-14 20:19:08 +01:00
Maciej Krüger
a8d6a99f5b
gluon-mesh-vpn-wireguard: fix empty string key
Co-Authored-By: Matthias Schiffer <mschiffer@universe-factory.net>
2022-01-14 04:53:28 +01:00
Maciej Krüger
78ca654c5c
gluon-mesh-vpn-fastd: fix empty string key
Co-Authored-By: Matthias Schiffer <mschiffer@universe-factory.net>
2022-01-14 04:53:28 +01:00
Maciej Krüger
08a8ef0bcd
gluon-web-admin: remove pubkey empty string workarround
Co-Authored-By: Matthias Schiffer <mschiffer@universe-factory.net>
2022-01-14 04:53:25 +01:00
Maciej Krüger
816d2796be
gluon-core: add gluon info binary
This copies the code from web-admin and uses it to create a neat
cli-accessible summary about a node

This could also be extended or possibly have all the data the status
page has

Co-Authored-By: Matthias Schiffer <mschiffer@universe-factory.net>
2022-01-14 04:53:19 +01:00
J. Burfeind
7427ba2280
gluon-status-page: split bwlimit into two lines (#2371)
Fixes: 1cb0fc84fc ("gluon-status-page: swap bandwidth limits (#2304)")
Resolves #2370
2022-01-07 21:35:15 +01:00
Matthias Schiffer
f32c683601
scripts: lint-sh: ignore warnings about POSIX sh compatiblity
The following features are available in Busybox ash, so we don't need to
warn about them for runtime scripts:

- local keyword
- echo -n / -e
- String indexing

These warnings are new in shellcheck 0.7.2, which would otherwise fail
for various scripts.
2022-01-03 03:25:27 +01:00
Matthias Schiffer
24682a3197
contrib: push_pkg: fix lint issues with shellcheck 0.7.1
0.7.1 complains about unescaped backslashes in double quotes (which are
intepreted by printf in the two affected places). While the warning was
retired with shellcheck 0.7.2, it seems like a good idea to fix it
anyways.
2022-01-03 03:25:27 +01:00
David Bauer
60c6b4023b
Merge pull request #2361 from freifunk-gluon/cleanup-target-lib
Target build cleanup
2022-01-02 19:20:19 +01:00
David Bauer
b95b857aa8
Merge pull request #2339 from freifunk-gluon/status-page-iwinfo
gluon-status-page: use UCI + iwinfo to get channel information
2022-01-02 19:18:53 +01:00
Tom Herbers
17731ae8fd
scripts/container.sh: allow for empty Branch Names and git errors (#2363)
Resolves #2362
2022-01-01 19:20:41 +01:00
David Bauer
0d0801da99
Merge pull request #2364 from freifunk-gluon/migration-cleanup
Clean up obsolete upgrade migrations
2022-01-01 18:20:42 +01:00
Matthias Schiffer
eaac48e20d
gluon-mesh-vpn-fastd: remove obsolete migration 2022-01-01 01:46:19 +01:00
Matthias Schiffer
97ef7889c6
gluon-core: remove more obsolete migrations 2022-01-01 01:45:52 +01:00
Matthias Schiffer
9712912904
gluon-l3roamd: remove obsolete migration code 2021-12-31 23:22:14 +01:00
Matthias Schiffer
5b40265ff2
gluon-mesh-batman-adv: remove obsolete migration code 2021-12-31 23:16:15 +01:00
Matthias Schiffer
bae14abca4
gluon-core: remove obsolete proto 'batadv' -> 'gluon_mesh' migration
More migration code from 2016.
2021-12-31 22:51:29 +01:00
Matthias Schiffer
16bf5e3e5d
gluon-core: remove obsolete sysconfig.gluon_version handling
The file /lib/gluon/version/core hasn't existed since early 2014, so
this whole script is obsolete.
2021-12-31 22:51:29 +01:00
Matthias Schiffer
6633ff1bf8
Merge pull request #2357 from blocktrron/upstream-master-updates
modules: update OpenWrt & packages
2021-12-31 15:13:27 +01:00
Matthias Schiffer
adda317176
build: set GLUON_DEPRECATED = 0 by default
We currently don't have any deprecated devices, so it doesn't make much
sense to force every site to specify this variable. Make it default to 0
instead.
2021-12-31 14:44:47 +01:00
Matthias Schiffer
a0fae1f827
scripts: target_lib: remove obsolete non-device image handlers
All our targets use the OpenWrt device abstraction. Since commit
6ba58c9b17c90e41b521d796ab76e5723ee017170
("generic: force per-device RootFS") building non-device targets is not
possible anymore, so we can remove these obsolete handlers.
2021-12-31 14:36:30 +01:00
Matthias Schiffer
cc174ad1d0
x86: copy separate kernel and rootfs images to "other" directory
For regular use, a full disk image is always recommended, as it is
required to support sysupgrades.

During development or for automated tests, separate images for the
kernel and rootfs may be useful to pass additional kernel cmdline or use
nfsroot/virtiofs. The rootfs is only available as a (squashfs)
filesystem image, not as a TAR archive (the TAR archive in OpenWrt's bin
directory does not contain DEVICE_PACKAGES, so it is missing most of
Gluon's packages).
2021-12-31 13:47:36 +01:00
Matthias Schiffer
cd7da8472e
x86: fix indentation of package lists 2021-12-31 13:46:41 +01:00
David Bauer
904c51527a modules: update packages
7a15a271a mwan3: fix mwan3 flush conntrack table call
2f52958e0 golang: Update to 1.17.5, add patch
f7973fc7a adguardhome: update to 0.107.0
d5ce7603d xray-core: Update to 1.5.2
60419af87 xray-core: Update to 1.5.1
c8b6cffcd yq: Update to 4.16.2
a21e79094 adblock: 4.1.3-4
2021-12-31 03:18:13 +01:00
David Bauer
fb231959da modules: update openwrt
4dddb7ca36 tcpdump: libpcap: Remove http://www.us.tcpdump.org mirror
47a5b9744b linux-firmware: amd: consolidate amd's linux-firmware entries
6003752394 linux-firmware: Update to version 20211216
7306b9e810 linux-firmware: update to 20210511
d0b0ebf966 linux-firmware: update to version 20210315 and trim down broadcom FW
209c77e90f linux-firmware: ath10k: add support for Qualcomm Atheros QCA9377
2ed471a12a firmware: intel-microcode: update to 20210608
a20e9474df cypress-nvram: fix firmware is not exist for raspberry pi compute 4
dbe2a6343f base-files: fix service_running check
e81dd8a10a base-files: upgrade: fix efi partitions size calculation
8166bbf680 ccache: update to 4.2.1
5e2a2b086c mvebu: Turris Omnia: use SFP module, if present
24e564d327 mvebu: backport Turris Omnia DTS changes to 5.4
32c74552b2 kernel: bump 5.4 to 5.4.168
a8ad881b83 apm821xx: fix WD MyBook Live DUO USB-Port
d655eea053 hostapd: only attempt to set qos map if supported by the driver
2021-12-31 03:18:03 +01:00
Martin Weinelt
65da23ada4
Merge pull request #2356 from freifunk-gluon/doc-make-update 2021-12-31 03:01:45 +01:00
Matthias Schiffer
efb4a4f637
docs: user/getting_started: add a footnote regarding make update
Add some explanation when `make update` needs to be run again.
2021-12-31 02:50:23 +01:00
Tom Herbers
48d00abe4f
README.md: add link to Matrix room (#2354)
Co-authored-by: David Bauer <mail@david-bauer.net>
2021-12-30 23:51:40 +01:00
David Bauer
a250177d07
Merge pull request #2349 from freifunk-gluon/doc-indent
docs: consistent indentation + minor fixes
2021-12-30 23:30:55 +01:00
Matthias Schiffer
4019293e85
gluon-respondd: remove obsolete migration from upgrade script (#2350)
announced was renamed to respondd in 2016. Let's remove the obsolete
migration code.
2021-12-25 11:42:57 +01:00
Matthias Schiffer
543039d190
docs: remove obsolete workaround for paragraphs in nested lists
With older versions of the RTD theme, paragraphs in nested lists would
lead to inconsistent spacing. This has been fixed, so we can remove our
workaround to use line blocks instead of paragraphs.
2021-12-24 14:22:20 +01:00
Matthias Schiffer
ac3ac29158
docs: minor grammer/wording fixes 2021-12-24 14:18:16 +01:00