70 Commits

Author SHA1 Message Date
DHDAXCW
e1fa90e221 fix 2024-07-22 18:19:21 +08:00
DHDAXCW
a3f6b75cba mac80211: update to version 6.9.9 2024-07-22 18:07:26 +08:00
DHDAXCW
b62378dcb4 sync 2024-07-19 17:13:54 +08:00
DHDAXCW
7c237658e3 sync 2024-07-01 12:50:08 +08:00
DHDAXCW
3fe8285ca0 fix 2024-06-30 15:05:56 +08:00
DHDAXCW
a4b677615e fix 2024-06-30 14:53:16 +08:00
Miles Poupart
c5e3380c48
base-files: force remount ext4 rootfs 2023-11-13 09:13:36 +08:00
DHDAXCW
391bb0df74 fix? 2023-11-06 05:39:02 +00:00
DHDAXCW
cd229d6484 kernel: bump 6.1 to 6.1.58 2023-10-17 05:56:16 +00:00
骷髅头
8614a08683
Update sysctl.conf 2023-10-14 12:25:47 +08:00
骷髅头
cfb27e3575
Update wifi 2023-05-02 20:56:01 +08:00
littoy
2341502b2d
ext4 remount rw (#25)
* ext4 remount rw

* 提高网络性能
2023-01-24 16:30:56 +08:00
DHDAXCW
20a6149d5b sync 2023-01-21 10:42:33 +00:00
littoy
f7124f06dc
检查自动恢复ext4 rw (#23) 2023-01-20 19:53:32 +08:00
littoy
2226c0f8a6
微调内核参数,提高并发数 (#22) 2023-01-19 23:23:45 +08:00
DHDAXCW
5a562900a4 sycn 2023-01-13 01:24:47 +00:00
骷髅头
986c4118e6
Update banner 2022-11-02 15:59:26 +08:00
骷髅头
8a5715ed4f
Update banner 2022-11-02 15:19:58 +08:00
骷髅头
765149d544
fuck 2022-11-02 14:35:20 +08:00
lean
35ae8c152e Revert "base-file: remove password aging feature form /etc/shadow"
This reverts commit ae7f2dbf407b0b58252b0a2b4cfb784e57634fdb.
2022-02-25 23:17:10 +08:00
Rucke Teg
ae7f2dbf40 base-file: remove password aging feature form /etc/shadow
In the default shadow file, as visible in the failsafe mode, the user
root has value of `0` set in  the 3rd field, the date of last password
change. This setting means that the password needs to be changed the
next time the user will log in the system. `dropbear` server is ignoring
this setting but `openssh-server` tries to enforce it and fails in the
failsafe mode because the rootfs is R/O.

Disable the password aging feature for user root by setting the 3rd
filed empty.

Signed-off-by: Rucke Teg <rucketeg@protonmail.com>
2022-02-24 17:18:43 +00:00
Javier Marcet
33a4c251a2 base-files: upgrade: fix efi partitions size calculation
We were missing (not using) the last sector of each partition,
compared with the output of gparted.

Signed-off-by: Javier Marcet <javier@marcet.info>
[moved the dot]
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2021-12-31 10:40:40 +08:00
aakkll
2972a0502d
base-files: add eMMC sysupgrade support (#8400)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>

Co-authored-by: Enrico Mioso <mrkiko.rs@gmail.com>
2021-12-08 16:09:15 +08:00
Hugo Yuan
010702bc1a
base-file: Add mmc support (#8329) 2021-11-27 18:14:36 +08:00
Beginner
a763fe4e88
base-files: chmod 1777 /var/lock (#8120)
Per FHS 3.0, /var/lock is the location for lock files [1].
However its current permissions (755) are too restrictive
for use by unprivileged processes.
Debian and Ubuntu set them to 1777, and now so do we.

[1] <https://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.html#varlockLockFiles>

Signed-off-by: Deomid Ryabkov <rojer@rojer.me>
[fixed typo in commit message, had to remove "rojer" due to git hooks]
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>

Co-authored-by: Deomid Ryabkov <rojer@rojer.me>
2021-10-26 22:22:11 +08:00
AmadeusGhost
56c4a5e91c base-files: switch the banner to lede 2021-10-08 11:40:18 +08:00
Beginner
c85f84bfde
base-files: reduce sed calls (#7924)
* base-files: reduce `sed` calls

The `sed`-script shouldn't be called multiple times, especially not with
the same files.

This commit merges all files together in a single `sed`-script call.

Signed-off-by: Paul Spooren <mail@aparcar.org>

* base-files: reduce number of `mkdir` calls

The `mkdir` commands supports passing multiple arguments to batch create
multiple folders, instead of calling the tool every single time.

If the creation of one of the folders fails, all other folder are still
created and therefore doesn't change the error handling.

Also stop creating `/etc/` explicitly after subfolders of `/etc/` were
already created.

Signed-off-by: Paul Spooren <mail@aparcar.org>

Co-authored-by: Paul Spooren <mail@aparcar.org>
2021-09-25 01:40:03 +08:00
Beginner
9b519e7747
base-files: add option to make /var persistent (#7719)
* base-files: add option to make /var persistent

In OpenWrt, /var is symlinked to /tmp by default. This is done to reduce
the amount of writes to the flash chip, which often have not the
greatest durability. As a result, things like DHCP or UPnP lease files,
are not persistent across reboots.

Since OpenWrt can run on devices with more durable storage, it makes
sense to have an option for a persistent /var. Add an option to make
/var persistent. When enabled, /var will no longer be symlinked to /tmp,
but /var/run will be symlink to /tmp/run, as it should contains only
files that should not be kept during reboot. The option is off by
default, to maintain the current behaviour.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>

* base-files: fix option to make /var persistent

The option was initially named TARGET_ROOTFS_LN_VAR_TMP, and the check
was correct. When renaming the option to something more suitable, the
check was changed to check for n, but when an option is not set, it's
not n but empty. This results in the check always evaluating to false.
Fix the check by checking for y with ifneq.

Fixes: 57807f50ded6 ("base-files: add option to make /var persistent")

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>

Co-authored-by: Stijn Tintel <stijn@linux-ipv6.be>
2021-08-24 19:13:55 +08:00
Beginner
401af3c26f
base-files: sysupgrade stage2: fix losetup detection (#7601)
If the busybox applet losetup was selected, `command -v` selects that
during sysupgrade. As this applet is in another path and doesn't cover
the '-D' option which is used to make sure user-defined loop devices
are no longer active during sysupgrade.
Detect losetup at the path of the full utility to avoid error messages
in case of the busybox applet being selected.

Reported-by: fda77 <fda77@users.noreply.github.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>

Co-authored-by: Daniel Golle <daniel@makrotopia.org>
2021-08-06 09:29:44 +08:00
qianxu2001
0deda920ef
base-files: NTP change (#7252)
https://help.aliyun.com/document_detail/92704.html
2021-07-02 21:39:39 +08:00
Bob Cantor
d444b78fc9 base-files: wifi: tidy up the reconf code
commit 5edbd390d321532d9a697d6895a1a7c71c40bd5d rearranged the
"wifi up" code.

This commit tidies up the "wifi reconf" code so as to
keep it aligned with the "wifi up" code.

branches affected: trunk, 21.02

Signed-off-by: Bob Cantor <coxede6557@w3boats.com>
2021-06-29 11:17:51 +08:00
Bob Cantor
420bd45ca2 base-files: wifi: swap the order of some ubus calls
"/sbin/wifi up" makes three ubus calls:
1. ubus call network reload
2. ubus call network.wireless down
3. ubus call network.wireless up

The first and third ubus calls call drv_mac80211_setup,
while the second ubus call triggers wireless_device_setup_cancel,
so the call sequence becomes,

1. drv_mac80211_setup
2. wireless_device_setup_cancel
3. drv_mac80211_setup

This commit swaps the order of the first two ubus calls,
1. ubus call network.wireless down
2. ubus call network reload
3. ubus call network.wireless up

Consequently drv_mac80211_setup is only called once,
and two related bugs (#FS3784 and #FS3902) are no longer triggered
by /sbin/wifi.

branches affected: trunk, 21.02

Signed-off-by: Bob Cantor <coxede6557@w3boats.com>
2021-06-29 11:17:32 +08:00
dansir
7143083908
base-files: NTP servers set for CN users (#7101) 2021-06-20 05:28:04 +00:00
lean
a3f1e837fd x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
lean
7a50383ab6 add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
acooler15
22cfbe7faa
add function extra_command (#6357) 2021-02-11 09:19:12 +08:00
AmadeusGhost
5b1838d04d
kernel: bump 5.4 to 5.4.95 (#6340) 2021-02-08 17:13:28 +08:00
AmadeusGhost
404209f6c4
kernel: bump to 4.14.193, 4.19.138, 5.4.59 (#5350)
kernel: bump to 4.14.193, 4.19.138, 5.4.59 (#5350)
  431fb8c mac80211: add AQL improvements
  6bdd4c9 mac80211: add missing backports for building with 4.14 kernels
  0106820 mac80211: add missing return code checks in AQL improvements
  e7f7101 mac80211: rework encapsulation offload support

[package]
  base-files: add function for generating random MAC
  dnsmasq: abort dhcp_check on interface state
  boot: sync upstream source code
  ath10k-ct-firmware/mt76/sch_cake: update to latest git HEAD

[script]
  download: add China Mirror Station

[target]
  Sync: arc770, ath79, bcm63xx, kirkwood, lantiq, layerscape,
        mediatek, mvebu, octeon, oxnas, pistachio, uml
  Sync most of the target patches.

Run-compiled-on: ipq40xx (4.19 & 5.4), ramips
2020-08-26 11:31:50 +08:00
coolsnowwolf
33abeff31c Sync to snapshot kernel 5.4 version 2020-07-02 23:30:56 +08:00
AmadeusGhost
463b6ac050
mac80211: fixed slow wireless startup (#4420)
* hostapd: reduce to a single instance per service

* mac80211: sync upstream source code

* iw: bump to 5.4
2020-04-23 16:42:46 +08:00
lean
aadf217f55 dropbear: bump to 2019.78 2020-03-22 18:35:41 +08:00
AmadeusGhost
6901278ef0
kernel: bump to 4.14.169, 4.19.101 (#2963)
* kernel: bump to 4.14.169, 4.19.101

* uboot: update to latest

* mediatek: bump to v4.19

* ath79: switch to wpad

* Revert 'grub2: update to latest'
2020-02-06 21:45:40 +08:00
coolsnowwolf
ecea39f109 Revert "files: sync from openwrt v19.07 (#2690)"
This reverts commit 2289184a623c4da882a376abb649969dee73654f.
2020-02-03 12:33:25 +08:00
coolsnowwolf
4f81d5b082 Revert "OpenWrt v19.07.1: adjust config defaults"
This reverts commit b7007324c0a1024e4c032759295e83602888cd46.
2020-02-03 12:33:12 +08:00
coolsnowwolf
b7007324c0 OpenWrt v19.07.1: adjust config defaults 2020-02-01 19:25:36 +08:00
coolsnowwolf
bffe4e4f82 import urandom-seed and urngd for v19.07 2020-02-01 18:35:27 +08:00
AmadeusGhost
2289184a62
files: sync from openwrt v19.07 (#2690) 2020-02-01 16:50:37 +08:00
LEAN-ESX
7655ad367f fstool: mount/umount fs without reboot 2019-12-08 09:30:10 -08:00
LEAN-ESX
7983beada3 base-files: add 'wifi reconf' 2019-11-23 19:03:29 -08:00
70599
bce1bc143d fix wrong permissions after sysupgrade on ext4 2019-04-17 11:21:02 +08:00