1
0
mirror of https://github.com/freifunk-gluon/packages.git synced 2024-06-20 23:58:29 +02:00
Commit Graph

877 Commits

Author SHA1 Message Date
Florian Maurer
3d08b0fee8 wgpeerselector: fix undefined variable peer
Signed-off-by: Florian Maurer <f.maurer@outlook.de>
2024-01-22 23:22:23 +01:00
Matthias Schiffer
53ea3b8977 libplatforminfo: update bcm27xx target name
The RPi targets were renamed in OpenWrt 21.02 (Gluon 2022.1). As
libplatforminfo was not adjusted, image names were using autodetected
model names including a revision number again, requiring additional
manifest aliases.
2023-12-19 18:40:02 +01:00
Matthias Schiffer
28a35ea2c9 libplatforminfo: drop obsolete ar71xx-mikrotik target
The obsolete ar71xx-mikrotik.c was symlinked to template/nosysupgrade.c.
As all new mikrotik targets have sysupgrade support, we can just remove
the symlink and use the default handling of libplatforminfo.

nosysupgrade.c becomes unused, but it left in the repository for future
experimental targets without sysupgrade support.
2023-12-19 18:40:02 +01:00
Matthias Schiffer
dc99bbb906
Merge pull request #268 from Kistelini/armsr
libplatforminfo: handle armsr target
2023-10-19 17:53:29 +02:00
Christian Buschau
2cf0156fd7
libplatforminfo: handle armsr target 2023-10-19 10:20:28 +02:00
Matthias Schiffer
ce2e6ac193 simple-tc: fix kmod dependencies
simple-tc hasn't been working since OpenWrt 22.03, as act_police was moved
to a separate package.

While we're at it, we can also clean up the other dependencies:

- Remove the obsolete conditional dependencies, these were for
  GLUON_SPECIALIZE_KERNEL
- cls_basic was moved to kmod-sched-core, so we don't need kmod-sched
  anymore
2023-10-13 19:45:28 +02:00
Matthias Schiffer
72efd369ed uradvd: remove redundant package
uradvd lives in openwrt/packages now.
2023-10-02 23:46:03 +02:00
Matthias Schiffer
c113a73912
Merge pull request #265 from freifunk-gluon/remove-tunneldigger
tunneldigger: remove redundant package
2023-09-27 21:38:51 +02:00
Matthias Schiffer
8329130a7c
tunneldigger: remove redundant package
A tunneldigger package has been upstreamed to openwrt/packages. Drop our
redundant copy.
2023-09-26 19:09:47 +02:00
Matthias Schiffer
29912ec630
Merge pull request #262 from freifunk-gluon/autoupdater-fixes
Autoupdater fixes (use-after-free, better signal handling)
2023-04-13 20:58:59 +02:00
Matthias Schiffer
a5259c0245
autoupdater: improve handling of interrupted HTTP requests
Check return code of uloop_run() and pass the signal number up when the
loop was interrupted. After cleanup, uninstall uloop's signal handlers
and re-raise the signal to terminate the process.

This allows interrupting the autoupdater using Ctrl-C during downloads,
instead of having it continue with the next mirror (if multple are
configured). As uloop's signal handlers only set a flag to interrupt
uloop_run() and have otherwise no effect, the autoupdater can still only
be interrupted during HTTP requests, ensuring we can't leave the system
in an inconsistent state.
2023-02-24 22:34:26 +01:00
Matthias Schiffer
e4bd7a4549
autoupdater: uclient: fix segfault after interrupted HTTP request
uloop_run() may finish without ever reaching request_done(), for example
when the main loop is interrupted by a signal. In this case,
uclient_disconnect() was never called, leaving a number of callbacks
like timeout handlers registered in the uloop context.

When the main loop was later resumed in a subsequent HTTP request without
completely reinitializing the uloop context, these timeout handlers could
still fire, even though the old uclient context had already been freed,
resulting in a use-after-free.

To avoid this, move the uclient_disconnect() call out of request_done()
to ensure that it is always called before uclient_free().
2023-02-24 21:00:02 +01:00
Matthias Schiffer
5521926500
autoupdater: uclient: remove early returns from get_url()
Simplify control flow by removing early returns. This allows us to
deduplicate cleanup (uclient_free() for now).
2023-02-24 20:59:58 +01:00
Matthias Schiffer
04d2b6ffbb sse-multiplex: fix pipe FD leaks
sse-multiplexd leaked pipe FDs to its child processes, so newer children
kept the older ones alive when they should have received a SIGPIPE already.

Closes freifunk-gluon/gluon#2468
2022-07-03 16:19:35 +02:00
David Bauer
b804281664 autoupdater: ignore minor compat-version
Ignore a mismatching minor compat-version. A minor version hints an
incompatibility with configuration, which Gluon re-generates based on
the intent on upgrade. Thus, only mismatching major versions present
a reason to block installation.

This is required to provide a migration path from swconfig to DSA based
ethernet architectures.

Signed-off-by: David Bauer <mail@david-bauer.net>
2022-06-26 01:55:38 +02:00
Martin Weinelt
308166e3c6
Merge pull request #254 from mkg20001/hostname-instant 2022-01-20 12:39:48 +01:00
Maciej Krüger
5bca0364d0
pretty-hostname: instantly apply hostname
This makes it work like the CLI
2022-01-20 11:05:35 +01:00
Adorfer
a85fa336ba
treewide: change Github URLs from git:// to https:// (#252)
Github dropped git:// support. Only the tunneldigger Makefile is affected.

[Matthias Schiffer: changed commit message]

Original commit message:

git:// links browned out since yesterday

see https://github.blog/2021-09-01-improving-git-protocol-security-github/#when-are-these-changes-effective
https://forum.freifunk.net/t/gluon-braucht-menschen-die-tunneldigger-aenderungen-testen/20674
0bd5330776/patches/tunneldiggergit.patch
2022-01-12 21:17:42 +01:00
Matthias Schiffer
52d7ac4aea respondd-module-airtime: move const specifier to the right location
GCC was warning that the second const was reduncant.
2021-10-25 00:09:01 +02:00
Matthias Schiffer
806703222f respondd-module-airtime: remove incorrect fprintf argument 2021-10-25 00:09:01 +02:00
Matthias Schiffer
1412236c09 respondd-module-airtime: remove PHY ID again
This ID is meaningless outside of a node itself, it is not necessarily
stable across reboots and upgrades, and there is nothing else in the
respondd data that this ID could be matched against. Remove it.

This reverts commit 8d53ff54e5 ("respondd-module-airtime: add idx").
2021-10-25 00:09:01 +02:00
Matthias Schiffer
1dd5cd1706 respondd-module-airtime: improve error handling
- Return either NL_OK or NL_STOP from callback
- Return the generated airtime entry from get_airtime()
2021-10-25 00:09:01 +02:00
genofire
b4858b1509
net/wgpeerselector: keep same datatype on ubus status (#250) 2021-10-03 10:58:43 +02:00
lemoer
0a334b837f wgpeerselector: add package
For docs, see net/wgpeerselector/README.md.
2021-09-15 01:05:14 +02:00
Grische
0648b2dbf7
autoupdater: verify the image before upgrading (#247)
Let sysupgrade run a --test upgrade to verify that the image is
compatible before attempting an upgrade.
This fixes an issue where a router can get stuck without network
connectivity when a a remote autoupgrade was triggered.

Fixes #193
2021-09-08 17:41:05 +02:00
citronalco
83534952a5
autoupdater: Add HTTP-Header X-FIRMWARE-VERSION (#246)
X-FIRMWARE-VERSION gets set to the content of the file referenced by UCI setting "autoupdater.settings.version_file"
If "autoupdater.settings.version_file" is unset X-FIRMWARE-VERSION is
omitted
2021-07-16 19:25:06 +02:00
David Bauer
825aa0c093 respondd-module-airtime: fix null pointer deref
In case a radio exists, but is disabled, the survey request will return
successfully, but without data.

The code could not handle this case, as the newest_element_index would
be negative in this case, leading to json_object_array_get_idx returning
a null-pointer.

Check for a null pointer prior adding the PHY index, avoiding a
null-pointer dereference.

Signed-off-by: David Bauer <mail@david-bauer.net>
2021-07-03 02:31:05 +02:00
Matthias Schiffer
b644a2a8d8
Merge pull request #245 from freifunk-gluon/lua-jsonc-host
lua-jsonc host build
2021-06-12 23:29:13 +02:00
Matthias Schiffer
64148a9baf
lua-jsonc: add host build support 2021-06-09 21:30:39 +02:00
Matthias Schiffer
c2623391bf lua-jsonc: do not link against liblua
Linking against liblua requires a shared or PIC liblua, which isn't the
case for host Lua.
2021-06-09 19:34:27 +02:00
aiyion.prime
8d53ff54e5 respondd-module-airtime: add idx
implements freifunk-gluon/gluon#2204
2021-04-22 20:23:49 +02:00
Martin Weinelt
0229863094
Merge pull request #243 from lemoer/pr_lua_hash_license
lua-hash: add license
2021-04-11 20:38:10 +02:00
lemoer
f3b0c5ac20 lua-hash: add license 2021-04-11 20:31:34 +02:00
Matthias Schiffer
3822f44013
tunneldigger: remove unneeded kmod-l2tp-ip dependency
Closes #242
2021-03-07 18:34:15 +01:00
Ralf Jung
95c805c863
tunneldigger: update to latest upstream (#238) 2020-05-17 12:20:09 +02:00
Matthias Schiffer
12e41d0ff0
libplatforminfo: brcm2708: use board_name instead of model for image name
The sanitized board name is a reasonable image name, and there are fewer
redundant variations.
2020-02-04 23:15:58 +01:00
Christof Schulze
033401c18e mmfd: bump version
* FIX bind to all mesh interfaces and process all data
* FIX crash due to debug output
2020-01-20 23:54:39 +01:00
Christof Schulze
7cdfb66ece l3roamd: bump version
* Fix processing of multicast messages
* Fix fd handling
* fix endless loop on socket handling
2020-01-20 23:54:39 +01:00
Jason
85af243158
autoupdater: Fixed segfault on wrong long option
If an autoupdater long option (prefixed with '--') are unknown then a segmentation fault occurs.
Example:
root@node:~# autoupdater --xyz
Segmentation fault

[Matthias Schiffer: changed sentinel syntax]
2020-01-10 00:34:44 +01:00
Matthias Schiffer
208d9ccd14
Revert "luasrcdiet: add package (moved from luci-base package)" and following
The package has been backported to openwrt/packages.
2019-11-26 19:59:15 +01:00
Matthias Schiffer
83dbdbcb7b
luasrcdiet: update Makefile to openwrt/packages version 2019-11-23 16:40:21 +01:00
Matthias Schiffer
0371952ab0
luasrcdiet: add package (moved from luci-base package)
See https://github.com/openwrt/packages/pull/10626
2019-11-23 15:17:14 +01:00
Matthias Schiffer
2fe5c893c6
Merge pull request #212 from TDT-AG/pr/20190211-micrond
micrond: move to openwrt packages feed
2019-11-20 14:02:14 +01:00
Martin Weinelt
de7b228cae
batman-adv-legacy: remove the package 2019-09-27 10:03:17 +02:00
Sven Roederer
85c8044e6c l3roamd: update to fix build
* Add some usage documentation to readme
* FIX: compile error on include sys/unistd.h vs unistd.h
2019-09-25 20:47:26 +02:00
Christof Schulze
295f0555f9 l3roamd: bump version: instant claiming, FIX removing routes 2019-09-17 09:25:04 +02:00
Matthias Schiffer
e130b6f54d
simple-tc: increment PKG_VERSION
We had a report of broken builds after this change. Forcing the package
metadata to be rebuilt should help.
2019-09-04 20:52:50 +02:00
Christof Schulze
8926020697 libbabelhelper: bump version to allow specifying the command for readbabeldata() 2019-08-23 18:52:38 +02:00
Christof Schulze
0447a6960c bump mmfd: Bugfix Crash and firends
* include bugfix to allow sending unicast packets to neighbours
* FIX crash due to wrong format string
* FIX packet forwarding on mesh devices added via socket
* allow to build statically
* avoid adding mesh interfaces multiple times
2019-08-23 18:52:38 +02:00
Matthias Schiffer
dccead7083
Merge pull request #211 from T-X/batman-adv-legacy-coexist
batman-adv-legacy: batman-adv co-existence
2019-08-22 19:54:56 +02:00