Commit Graph

18330 Commits

Author SHA1 Message Date
CN_SZTL
f00da71172
luci-app-passwall: sync with upstream source 2020-08-01 17:48:38 +08:00
CN_SZTL
ec15c5955d
luci-app-oled: sync with upstream source 2020-08-01 17:48:22 +08:00
CN_SZTL
3b896d109e
AdGuardHome: fix upx compress 2020-08-01 03:04:24 +08:00
CN_SZTL
10098beba3
AdGuardHome: add missing goproxy config 2020-07-31 22:06:12 +08:00
CN_SZTL
9c365cb375
AdGuardHome: add goproxy and upx support 2020-07-31 22:00:55 +08:00
CN_SZTL
0590b3ef8a
luci-app-kodexplorer: add nginx-util as a dependency 2020-07-31 21:35:34 +08:00
CN_SZTL
db833791ae
Merge Official Source 2020-07-31 20:24:15 +08:00
CN_SZTL
4b181198e4
luci-app-vssr: fix path to translation file 2020-07-31 20:22:46 +08:00
Adrian Schmutzler
c4dd7fc23b hostapd: reorganize config selection hierarchy for WPA3
The current selection of DRIVER_MAKEOPTS and TARGET_LDFLAGS is
exceptionally hard to read. This tries to make things a little
easier by inverting the hierarchy of the conditions, so SSL_VARIANT
is checked first and LOCAL_VARIANT is checked second.

This exploits the fact that some of the previous conditions were
unnecessary, e.g. there is no hostapd-mesh*, so we don't need
to exclude this combination.

It also should make it a little easier to see which options are
actually switched by SSL_VARIANT and which by LOCAL_VARIANT.

The patch is supposed to be cosmetic.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-31 11:40:15 +02:00
Adrian Schmutzler
02d6ac1060 base-files: fwtool: make compat_version backward compatible
So far, the compatibility mechanism only works if both device and
image are already updated to the new routines. This patch extends
the sysupgrade metadata and fwtool_check_image() to account for
"older" images as well:

The basic mechanism for older devices to check for image compatibility
is the supported_devices entry. This can be exploited by putting
a custom message into this variable of the metadata, so older FW
will produce a mismatch and print the message as it thinks it's the
list of supported devices. So, we have two cases:

device 1.0, image 1.0:
  The metadata will just contain supported_devices as before.

device 1.0, image 1.1:
  The metadata will contain:

  "new_supported_devices":["device_string1", "device_string2", ...],
  "supported_devices":["Image version 1.1 incompatible to device: ..."]

  If the device is "legacy", i.e. does not have the updated fwtool.sh,
  it will just fail with image check and print the content of
  supported_devices. If DEVICE_COMPAT_MESSAGE is set, this will be
  printed on old devices as well through the same mechanism. Otherwise
  a generic "Please check documentation ..." is appended.

  Upgrade can still be performed with -F like when
  SUPPORTED_DEVICES has been removed to prevent bricking.

  If the device has updated fwtool.sh (but is 1.0), it will just use
  the new_supported_devices instead, and work as intended (flashing
  with -n will work, flashing without will print the appropriate
  warning).

This mechanism should provide a fair tradeoff between simplicity
and functionality.

Since we touched a lot of fields in metadata, this also bumps
metadata_version to 1.1.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-31 11:40:15 +02:00
Adrian Schmutzler
ad3e1f9db4 base-files: fwtool: implement compatibility check for images
We regularly encounter the situation that devices are subject to
changes that will make them incompatible to previous versions.
Removing SUPPORTED_DEVICES will not really be helpful in most of these
cases, as this only helps after a rename.

To solve this situation, this patchset introduces a compatibility
version for devices. In this patch, the actual checks are implemented
into fwtool_check_image():

If an incompatible change is introduced, one can increase either
the minor version (1.0->1.1) or the major version (1.0->2.0).

Minor version increment:
This will still allow sysupgrade, but require to reset config
(-n or SAVE_CONFIG=0). If sysupgrade is called without -n, a
corresponding message will be printed. If sysupgrade is called
with -n, it will just pass, with supported devices being checked
as usual. (Which will allow us to add back SUPPORTED_DEVICES for
many cases.)

Major version increment:
This is meant for potential (rare) cases where sysupgrade is
not possible at all, because it would break the device.
In this case, a warning will be printed, and -n won't help.

If image check fails because of one of the versions parts not
matching, the content of DEVICE_COMPAT_MESSAGE is printed in
addition to the generic message (if set).

For both cases, upgrade can still be forced with -F as usual.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-31 11:40:15 +02:00
Adrian Schmutzler
735de53b2a base-files: add support for compat_version on device
We regularly encounter the situation that devices are subject to
changes that will make them incompatible to previous versions.
Removing SUPPORTED_DEVICES will not really be helpful in most of these
cases, as this only helps after a rename.

To solve this situation, this patchset introduces a compatibility
version for devices. To complement the DEVICE_COMPAT_VERSION set
for the image to be flashed, this implements a compat_version on
the device, so it will have something to compare with the image.

The only viable way to achieve this seems to be via board.d files,
i.e. this is technically adding a compat version for the device's
config.

Like for the network setup, this will set up a command
ucidef_set_compat_version to set the compat_version in board.d.
This will then add a string to /etc/board.json, which will be
translated into uci system config by bin/config_generate.
By this, the compat_version, being a version of the config, will
also be exposed to the user.

As with DEVICE_COMPAT_VERSION, missing uci entry will be assumed
as compat_version "1.0", so we only need to add this if a device
needs to be bumped, e.g.

   ucidef_set_compat_version "1.1"

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-31 11:40:15 +02:00
CN_SZTL
1ec392b30e
luci-app-vssr: add package 2020-07-31 02:44:00 +08:00
CN_SZTL
dbb01cb419
pacakge: drop unmaintained package 2020-07-31 02:36:55 +08:00
CN_SZTL
a2c7e953d7
Merge Official Source 2020-07-31 02:06:37 +08:00
CN_SZTL
bc9cc41b3b
subconverter: bump to 0.6.2 2020-07-31 01:53:51 +08:00
Daniel Golle
d15b6e4895 procd: update to git HEAD
28be011 instance: make sure values are not inherited from previous runs
 2ae5cbc uxc: remove debugging left-over

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-07-30 17:16:53 +01:00
CN_SZTL
577b765de8
luci-app-passwall: sync with upstream source 2020-07-31 00:16:08 +08:00
ricksuzade-maker
43e0a0d36f
Bump wireguard to 1.0.20200729 2020-07-31 00:14:35 +08:00
CN_SZTL
092ab3af80
OpenClash: sync with upstream source 2020-07-31 00:10:36 +08:00
Adrian Schmutzler
917980fd8a hostapd: improve TITLE for packages
For a few packages, the current TITLE is too long, so it is not
displayed at all when running make menuconfig. Despite, there is
no indication of OpenSSL vs. wolfSSL in the titles.

Thus, this patch adjusts titles to be generally shorter, and adds
the SSL variant to it.

While at it, make things easier by creating a shared definition for
eapol-test like it's done already for all the other flavors.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-30 16:27:44 +01:00
Daniel Golle
34705946e2 hostapd: update mesh DFS patches and add mesh HE support
Drop outdated and by now broken patchset originally supplied by
Peter Oh in August 2018 but never merged upstream.
Instead add the more promissing rework recently submitted by
Markus Theil who picked up Peter's patchset, fixed and completed it
and added support for HE (802.11ax) in mesh mode.

This is only compile tested and needs some real-life testing.

Fixes: FS#3214
Fixes: 167028b750 ("hostapd: Update to version 2.9 (2019-08-08)")
Fixes: 0a3ec87a66 ("hostapd: update to latest Git hostap_2_9-1238-gdd2daf0848ed")
Fixes: 017320ead3 ("hostapd: bring back mesh patches")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-07-30 16:27:44 +01:00
CN_SZTL
8d080de6d6
luci-app-oled: sync with upstream source 2020-07-30 00:45:18 +08:00
CN_SZTL
618a9a6655
luci-app-cpufreq: drop incorrect translation 2020-07-29 23:29:47 +08:00
CN_SZTL
43d5a8e717
luci-app-oled: fix translation 2020-07-29 22:11:30 +08:00
CN_SZTL
33d539bb2e
default-settings: correct path for each app 2020-07-29 21:56:29 +08:00
CN_SZTL
e78ffad0cf
luci-app-turboacc: fix dependency of HWNAT 2020-07-29 18:00:01 +08:00
CN_SZTL
507757564f
luci-app-nginx-pingos: sync with upstream source 2020-07-29 17:42:45 +08:00
CN_SZTL
8cb5e7f693
luci-app-passwall: sync with upstream source 2020-07-29 17:42:26 +08:00
Daniel Golle
a15ed964cf procd: update to git HEAD
c3ca99f jail: serialize hook execution
 8ff8970 jail: add some remaining OCI features
 9d5fa0a uxc: behave more like a compliant OCI run-time
 1274033 uxc: fix create operation
 2d811a4 jail: add 'kill' method to container.%s object
 08133b8 uxc: use new container.%s kill ubus API

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-07-29 10:33:19 +01:00
CN_SZTL
9c74209aec
Revert "luci-app-adguardhome: drop outdated download link"
This reverts commit 8511aad15a.
2020-07-29 16:34:43 +08:00
CN_SZTL
6a7edda821
Merge Official Source 2020-07-29 00:18:30 +08:00
David Bauer
c3e252d080 base-files: add function for generating random MAC
This adds a function for generating a valid random MAC address (unset MC
bit / set locally administered bit).

It is necessary for devices which do not have a MAC address programmed
by the manufacturer.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-07-28 15:52:44 +02:00
David Bauer
04f06787f1 uboot-rockchip: add NanoPi R2S support
Add support for the FriendlyARM NanoPi R2S.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-07-28 15:52:44 +02:00
David Bauer
65ac670b79 uboot-rockchip: update to v2020.07
Update the U-Boot to version v2020.07. Also replace the Makefile rewrite
with a proper patch, explaining why this hack is needed.

Run-tested: FriendlyARM NanoPi R2S

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-07-28 15:52:44 +02:00
Lucian Cristian
444b107118 atf-rockchip: update to 2.3
also install the firmware for all the supported boards

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
[fix ATF blob path in uboot-rockchip]
Signed-off-by: David Bauer <mail@david-bauer.net>
2020-07-28 15:52:44 +02:00
CN_SZTL
b0cfc3e87a
luci-app-oled: sync with upstream source 2020-07-28 16:08:42 +08:00
acooler15
efbdec477a
add check and format 'security' parameter in function scan_app , and function connect_ap add bssid option
* check and format security

* apcli add bssid option

* updat PKG_RELEASE to 16
2020-07-28 15:21:50 +08:00
CN_SZTL
ac394d4d1d
autocore-arm: add ipq40xx support 2020-07-28 03:16:04 +08:00
CN_SZTL
f18824e498
uhttpd: drop OEM info 2020-07-27 22:03:27 +08:00
David Bauer
2db75c07fc
target/rockchip: sync with recently changes from upstream 2020-07-27 20:08:45 +08:00
CN_SZTL
2ceb8e57f9
Merge Official Source 2020-07-27 19:37:58 +08:00
CN_SZTL
8511aad15a
luci-app-adguardhome: drop outdated download link 2020-07-27 19:34:28 +08:00
CN_SZTL
747cfdf98e
luci-app-passwall: sync with upstream source 2020-07-27 19:34:04 +08:00
CN_SZTL
95b7909d10
UnblockNeteaseMusic-Go: bump to 0.2.4 2020-07-27 19:33:37 +08:00
CN_SZTL
af368bf8d6
brook: bump to 20200701 2020-07-27 19:33:13 +08:00
AmadeusGhost
1d232805f8
ramips/mtwifi: disable bind apcli interface to lan by default
The apcli interface can be bound to either lan or wan, so cancel the
default settings.
2020-07-27 18:36:35 +08:00
CN_SZTL
1cfad7959f
luci-app-clash: sync with upstream source 2020-07-27 18:31:22 +08:00
CN_SZTL
e9d161d16b
luci-theme-argon: sync with upstream source 2020-07-27 18:30:23 +08:00
Adrian Schmutzler
8126e572dd imx6: use device-tree compatible for board name
In imx6, we currently use the model from DTS to derive a board name
manually in /lib/imx6.sh.

However, if we have individual DTS files anyway, we can exploit
generic 02_sysinfo and use the compatible as board name directly.

While at it, remove the wildcards from /lib/upgrade/platform.sh as
these might make code shorter, but are quite unpleasant when grepping
for a specific device.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-27 12:10:45 +02:00