Commit Graph

4070 Commits

Author SHA1 Message Date
CN_SZTL
2ec9e53ffb
luci-app-flowoffload: fix kernel limitation 2020-07-12 23:57:25 +08:00
Petr Štetiar
8ea5db1519
libubox: update to version 2020-07-11
f4e9bf73ac5c examples/lua: attempt to highlight some traps
 53b9a2123fc6 lua/uloop: fd_add: use absolute indices for arguments
 c0941d3289fc lua/uloop: make get_sock_fd capable of absolute addresses
 161c25960ba2 lua/uloop: fd_add() better args checking

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-07-12 23:11:48 +08:00
AmadeusGhost
c00b7a4c94
gmediarender: fix compilation 2020-07-12 15:05:22 +08:00
Jason Zang
d0c456aa56
xlnetacc: adjust iface event handling strategy (#5076)
出于以下两个原因,调整快鸟服务对于iface事件的处理策略:
1. 快鸟服务跟随系统启动,ifup事件使快鸟服务重复启动,出现2个快鸟脚本运行实例(原始脚本对于重复运行的判断失效,原因未知)。修改为restart后可保证快鸟服务启动前关闭正在运行的快鸟服务。
2. ifdown事件后不应该立即停止快鸟服务。iface下线后,快鸟脚本无法访问快鸟服务器进行账户注销。未正常注销的账户在外部ip变动后重新上线会触发812错误(12或24小时内无法提速)。因此ifdown事件触发后不停止快鸟服务,而是等iface重新上线(网络恢复正常)后重启服务,以此保证账户注销流程可以正常进行。
2020-07-12 15:04:41 +08:00
coolsnowwolf
9a4458cbe4
ipv6-helper: fix dependency 2020-07-12 14:06:40 +08:00
coolsnowwolf
243867fdaf
luci-app-ipsec-vpnd: add strongswan-mod-kernel-libipsec 2020-07-12 14:05:07 +08:00
coolsnowwolf
e49d190577
luci-app-webadmin: fix typo 2020-07-12 14:04:59 +08:00
CN_SZTL
79553d989e
Merge branch 'openwrt-18.06' into openwrt-18.06-dev 2020-07-12 13:59:44 +08:00
Rui Salvaterra
d43bf75c71 busybox: store applet usage messages uncompressed
The rootfs squashfs is already highly (XZ) compressed. Storing the applet
messages in compressed form will increase the entropy and reduce the overall
image compression ratio.

Size diffs (compressed vs uncompressed):

busybox (the executable): 364596 vs 384804 bytes.

OpenWrt target images (the kernel image is unchanged, obviously):

 omnia-medkit-openwrt-mvebu-cortexa9-cznic_turris-omnia-initramfs.tar.gz:

  9163597 vs 9162531 bytes (1066 bytes difference).

openwrt-mvebu-cortexa9-cznic_turris-omnia-initramfs-kernel.bin:

  9161688 vs 9160600 bytes (1088 bytes difference).

openwrt-mvebu-cortexa9-cznic_turris-omnia-sysupgrade.img.gz:

 9729550 vs 9729230 bytes (320 bytes difference).

All in all, we save just a little bit over 1 kiB. As an added bonus, we
also don't have to decompress the messages twice, (first from squashfs,
then from the bzip2 message storage).

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
[added additional size comparision diff detaisl]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-07-12 12:25:35 +08:00
Rosen Penev
09c716e76a base-files/functions.sh: use command -v instead of which
which must be executed. command -v is a shell builtin.

https://github.com/koalaman/shellcheck/wiki/SC2230

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-07-12 12:25:13 +08:00
Rui Salvaterra
f4aec13ba4 zram-swap: correctly express the required dependencies
The block-mount swapon implementation doesn't support discard, so make zram-swap
depend only on the default BusyBox implementation or, when unavailable, on the
one present in the swap-utils package.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
2020-07-12 12:11:14 +08:00
Rui Salvaterra
7fda048b50 kernel: kmod-zram: break the strict dependency from lz4
Zram is only strictly dependent on lzo, not lz4. Break this dependency and
make the lz4 module visible in the configuration, in order for the user to
have the choice of enabling/disabling it, if (s)he sees fit.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
2020-07-12 12:08:32 +08:00
Rui Salvaterra
002cabbae2 zram-swap: enable swap discard
Zram block devices have supported trim/discard for over six years, let's
enable it. This allows the zram device to actually free up allocated memory
when it's marked as unused in the filesystem metadata, as explained in more
detail in the original commit message [1].

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/block/zram/zram_drv.c?h=linux-4.14.y&id=f4659d8e620d08bd1a84a8aec5d2f5294a242764

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
2020-07-12 12:03:45 +08:00
Rui Salvaterra
c39c7cfb6d busybox: use CLOCK_MONOTONIC instead of gettimeofday
The clock_gettime(CLOCK_MONOTONIC) syscall exists for so long that the first
kernel version to support it is not even specified in the man page [1]. Let's
enable it on BusyBox by default. Otherwise, gettimeofday will be used instead,
which will give wrong results if the date/time is reset (time moving backwards).

[1] https://linux.die.net/man/2/clock_gettime

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
2020-07-12 11:59:57 +08:00
Rosen Penev
27245e358c lzo: switch to building with CMake
CMake is less error prone that autotools and also compiles faster.

Fixed license information.

Added pkgconfig file to InstallDev so that packages that use it can
find lzo.

Before:

time make package/lzo/compile -j 12
________________________________________________________
Executed in   20.87 secs   fish           external
   usr time   26.95 secs    0.00 micros   26.95 secs
   sys time    5.49 secs  305.00 micros    5.49 secs

After:

time make package/lzo/compile -j 12
________________________________________________________
Executed in   13.22 secs   fish           external
   usr time   19.59 secs  328.00 micros   19.59 secs
   sys time    4.03 secs   10.00 micros    4.03 secs

Time output is with fish shell. make clean was ran before both attempts.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-07-12 11:59:30 +08:00
Tomasz Maciej Nowak
d23da45800 linux-firmware: package EIP197 mini firmware
Quoting part of original message from eefb5f741015 commit in
linux-firmware repository:

This adds the "minifw" version of the EIP197 firmware, which the inside-
secure driver will use as a fallback if the original full-featured
firmware cannot be found. This allows for using the inside-secure driver
and hardware without access to "official" firmware only available under
NDA.

Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
2020-07-12 11:58:32 +08:00
Pawel Dembicki
6950bd6f4e kernel: add package for Seiko S-35390A I2C RTC
This patch adds kernel package for Seiko Instruments S-35390A.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
2020-07-12 11:56:47 +08:00
Adrian Schmutzler
70a82a1f32 wireguard-tools: replace backticks by $(...)
This replaces deprecated backticks by more versatile $(...) syntax.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-12 11:54:55 +08:00
CN_SZTL
35a7e12385
duktape: drop dependency of python 2020-07-10 23:22:39 +08:00
CN_SZTL
38919ba8ed
subconverter: bump to 0.6.1 2020-07-10 22:57:19 +08:00
Lucian Cristian
b243788b28 kernel: iscsi-initator: fix kernel config symbols
Enable SCSI low-level drivers on targets that don't have it already in
order to fix following build failures on few platforms:

  .config:4739:warning: symbol value 'm' invalid for SCSI_LOWLEVEL
 * Restart config...
 * SCSI low-level drivers
 SCSI low-level drivers (SCSI_LOWLEVEL) [Y/n] (NEW) aborted!

Fixes: b88f8202c4 ("kernel: add iscsi-initator support")
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
[commit subject and description facelift]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-07-10 12:03:42 +08:00
Petr Štetiar
8f09dbbb24 kernel: iscsi-initator: fix missing dependency
Fixes following issue:

 Package kmod-iscsi-initiator is missing dependencies for the following libraries:
 crypto_hash.ko

Fixes: b88f8202c4 ("kernel: add iscsi-initator support")
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-07-09 12:05:09 +08:00
Lucian Cristian
01123cbf81 kernel: add iscsi-initator support
Module is needed for using iscsi-initiator userspace applications

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
[added missing newline between kernel modules]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-07-09 12:03:10 +08:00
Wren Turkal
79479c607d uclibc++: make verbosity affect uClibc++ build
Before this change, setting the verbosity to anything with V=blah would
cause uclibc++ build to print errors to the screen. Now, it the
clibc++ build verbosity will be altered in the following manners:
* V=s will set V=1 in the uclibc++ build
* V=sc will set V=2 in the uclibc++ build

Signed-off-by: Wren Turkal <wt@penguintechs.org>
2020-07-09 12:01:47 +08:00
AmadeusGhost
dd46600b60
ppp: refresh patches 2020-07-08 15:11:21 +08:00
Hans Dedecker
39301c3bbb
ppp: update to version 2.4.8.git-2020-05-25
ddd57c2 pppd: Add lcp-echo-adaptive option
c319558 pppd: Handle SIGINT and SIGTERM during interrupted syscalls (#148)
0bc11fb Added missing options to manual pages. (#149)
b1fcf16 Merge branch 'monotonic-time' of https://github.com/themiron/ppp
c78e312 pppd: linux: use monotonic time if possible

Remove patch 121-debian_adaptive_lcp_echo as patch is upstream accepted
Remove patch 206-compensate_time_change.patch as timewrap issues are
solved by a patch making use of monotonic time

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2020-07-08 15:10:55 +08:00
Hans Dedecker
539fff94da curl: bump to 7.71.1
For changes in 7.71.1; see https://curl.haxx.se/changes.html#7_71_1

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2020-07-08 12:02:50 +08:00
Petr Štetiar
747855d64d dropbear: make rsa-sha2-256 pubkeys usable again
Upstream in commit 972d723484d8 ("split signkey_type and signature_type
for RSA sha1 vs sha256") has added strict checking of pubkey algorithms
which made keys with SHA-256 hashing algorithm unusable as they still
reuse the `ssh-rsa` public key format. So fix this by disabling the
check for `rsa-sha2-256` pubkeys.

Ref: https://tools.ietf.org/html/rfc8332#section-3
Fixes: d4c80f5b17 ("dropbear: bump to 2020.80")
Tested-by: Russell Senior <russell@personaltelco.net>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-07-08 12:00:54 +08:00
CN_SZTL
63f1d71a18
luci-app-flowoffload/sfe: fix "unknown operand" 2020-07-07 23:58:38 +08:00
CN_SZTL
8e6834eb40
syncthing: bump to v1.7.0 2020-07-07 23:33:07 +08:00
AmadeusGhost
b8cd9a8cc6
AdGuardHome: call native compiler to pack binary 2020-07-07 23:24:02 +08:00
CN_SZTL
8a7d0c548f
subconverter: fix dependency 2020-07-07 22:41:28 +08:00
coolsnowwolf
76a96d2526
x86: fix cpu temp info 2020-07-07 20:28:40 +08:00
CN_SZTL
7d8bd72a1f
luci-app-sfe: fix typo error 2020-07-07 20:06:10 +08:00
AmadeusGhost
36080d8e9f
shortcut-fe-cm: load only once to avoid panic (#5019) 2020-07-07 17:39:41 +08:00
coolsnowwolf
2319486746
shortcut-fe: splite to 2 packges and rip off ipv6 2020-07-07 17:39:11 +08:00
coolsnowwolf
cecd7db66a
coremark: bump version to 2020-05-28 2020-07-07 17:36:44 +08:00
CN_SZTL
7dba1292d9
subweb: bump to latest git HEAD 2020-07-07 17:29:02 +08:00
CN_SZTL
042e676dc6
subconverter: bump latest git HEAD 2020-07-07 17:27:03 +08:00
accors
0a51aa6d07 Update v2ray version to 4.26.0 (#4983) 2020-07-07 11:53:52 +08:00
AmadeusGhost
4ef0a8f886 Revert "rpcd: update to latest snapshot version"
Revert this commit due to it relies on a changed libiwinfo API, and will broke the compilation.
2020-07-07 11:50:16 +08:00
coolsnowwolf
0c494e6b73
uci: add uci_add_list method 2020-07-07 10:19:43 +08:00
ricksuzade-maker
31ff0bba38
Bump v2ray-plugin to 1.3.3 (#5003)
Bump v2ray-plugin to the newest version.
2020-07-07 10:19:16 +08:00
coolsnowwolf
0221628529
autocore: x86 change RPS/XPS handling to all CPUs 2020-07-07 10:15:35 +08:00
CN_SZTL
c4faaf2a74
rpcd/ubox/procd: sync with upstream source 2020-07-07 10:08:43 +08:00
CN_SZTL
ff0b338fe3
luci-app-passwall: fix Makefile 2020-07-07 10:00:46 +08:00
AmadeusGhost
4939dee0a6 luci-app-sfe: fix config 2020-07-06 16:01:15 +08:00
CN_SZTL
9df7545904
uci: roll back to 2019-05-17 2020-07-06 12:01:34 +08:00
coolsnowwolf
80da19d02f
default-settings: remove sqm.zh-cn.po 2020-07-06 11:59:09 +08:00
CN_SZTL
7ff6af04fa
luci version: mod 20.07 2020-07-06 01:35:54 +08:00