Tianling Shen
3a5b87680f
Merge Official Source
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org >
2025-02-15 00:47:46 +08:00
Shiji Yang
bccab05ac7
base-files: fix offset conversion on caldata_patch_data()
...
`$(( ))` will convert uninitialized variable to "0". If we want to
use "-n" to check the string length, it's necessary to make sure the
converted variable is not empty.
Fixes: 652a6677d5 ("base-files: Add new functions for ath11k caldata")
Fixes: https://github.com/openwrt/openwrt/issues/17818
Signed-off-by: Shiji Yang <yangshiji66@qq.com >
Link: https://github.com/openwrt/openwrt/pull/17892
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
(cherry picked from commit 094b6f593f )
2025-02-13 00:32:30 +01:00
Tianling Shen
d4c67143da
ImmortalWrt v24.10.0: revert to branch defaults
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org >
2025-02-06 14:56:23 +08:00
Tianling Shen
78213f3f7a
ImmortalWrt v24.10.0: adjust config defaults
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org >
2025-02-06 14:56:20 +08:00
Hauke Mehrtens
9e1b04fbdc
OpenWrt v24.10.0: revert to branch defaults
...
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2025-02-04 00:10:38 +01:00
Hauke Mehrtens
1fad1b4965
OpenWrt v24.10.0: adjust config defaults
...
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2025-02-04 00:10:35 +01:00
Hauke Mehrtens
c08ba0f712
OpenWrt v24.10.0-rc7: revert to branch defaults
...
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2025-01-28 00:06:50 +01:00
Hauke Mehrtens
6cbfbb1853
OpenWrt v24.10.0-rc7: adjust config defaults
...
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2025-01-28 00:06:47 +01:00
Tianling Shen
2414137483
ImmortalWrt v24.10.0-rc4: revert to branch defaults
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org >
2025-01-24 16:34:27 +08:00
Tianling Shen
3e03614bdc
ImmortalWrt v24.10.0-rc4: adjust config defaults
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org >
2025-01-24 16:34:26 +08:00
Hauke Mehrtens
18c47b0e96
OpenWrt v24.10.0-rc6: revert to branch defaults
...
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2025-01-22 22:49:28 +01:00
Hauke Mehrtens
8c660861ef
OpenWrt v24.10.0-rc6: adjust config defaults
...
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2025-01-22 22:49:23 +01:00
Hauke Mehrtens
50dcebeb8a
OpenWrt v24.10.0-rc5: revert to branch defaults
...
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2025-01-06 01:24:07 +01:00
Hauke Mehrtens
3d17274ca8
OpenWrt v24.10.0-rc5: adjust config defaults
...
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2025-01-06 01:24:03 +01:00
Tianling Shen
687c2906ac
Merge Official Source
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org >
2025-01-05 22:24:10 +08:00
Shiji Yang
8b5f3ee940
base-files: strip space and tab characters from ASCII mac address
...
Spaces and tabs are widely used in variable definitions. We have to
remove them to ensure that get_mac_ascii() works properly.
Signed-off-by: Shiji Yang <yangshiji66@qq.com >
Link: https://github.com/openwrt/openwrt/pull/17262
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
(cherry picked from commit 551e04f3c9 )
2025-01-04 19:25:34 +01:00
Shiji Yang
676dfd1363
base-files: enable get_mac_ascii() to handle redundant strings
...
The function get_mac_ascii() will fail when there are two or more
same MAC address variable names in the mtd partition. Only retain
the first variable to workaround this rare situation.
Fixes: https://github.com/openwrt/openwrt/issues/17236
Signed-off-by: Shiji Yang <yangshiji66@qq.com >
Link: https://github.com/openwrt/openwrt/pull/17262
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
(cherry picked from commit 3410ad2f40 )
2025-01-04 19:25:34 +01:00
Tianling Shen
849b0be2de
Merge Official Source
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org >
2025-01-04 17:42:48 +08:00
Robert Marko
184d1c93cb
config: rename SECCOMP to USE_SECCOMP
...
It seems that we have some kind of a symbol name conflict which causes
CONFIG_SECCOMP to always be read as y.
Unfortunatelly, I could not figure out what is causing this, but simply
renaming SECCOMP to USE_SECCOMP seems to properly work and leaves the
symbol unset unless arch dependencies are satisfied.
This fixes qoriq and others that dont support seccomp from failing due
to procd-seccomp package being selected to get included but it cannot be
built for them:
ERROR: unable to select packages:
procd-seccomp (no such package):
required by: base-files-1637~52b6c92479[procd-seccomp]
Fixes: 4c65359af4 ("build: fix including busybox, procd and apk/opkg in imagebuilder")
Link: https://github.com/openwrt/openwrt/pull/17048
Signed-off-by: Robert Marko <robimarko@gmail.com >
(cherry picked from commit a48ec449cc )
2025-01-03 11:18:56 +01:00
Felix Fietkau
f97e729f8c
build: fix including busybox, procd and apk/opkg in imagebuilder
...
Since the image builder pulls package lists from metadata directly,
add procd and busybox as depdendencies to base-files.
As for the package manager itself, since it can be disabled it needs
to be added directly in the image builder makefile
Fixes: 44598c233d ("build: remove broken dependency of metadata on toplevel .config variables")
Signed-off-by: Felix Fietkau <nbd@nbd.name >
(cherry picked from commit 4c65359af4 )
2025-01-03 11:11:19 +01:00
Tianling Shen
35fba462e0
ImmortalWrt v24.10.0-rc3: revert to branch defaults
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org >
2024-12-26 16:04:32 +08:00
Tianling Shen
415304139d
ImmortalWrt v24.10.0-rc3: adjust config defaults
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org >
2024-12-26 16:04:31 +08:00
Hauke Mehrtens
372afe10f0
OpenWrt v24.10.0-rc4: revert to branch defaults
...
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2024-12-23 12:40:35 +01:00
Hauke Mehrtens
1e530e5831
OpenWrt v24.10.0-rc4: adjust config defaults
...
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2024-12-23 12:40:31 +01:00
Tianling Shen
0f7a2d3e21
ImmortalWrt v24.10.0-rc2: revert to branch defaults
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org >
2024-12-21 15:00:06 +08:00
Tianling Shen
b912a96ab4
ImmortalWrt v24.10.0-rc2: adjust config defaults
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org >
2024-12-21 15:00:06 +08:00
Hauke Mehrtens
975811921e
OpenWrt v24.10.0-rc3: revert to branch defaults
...
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2024-12-21 01:51:34 +01:00
Hauke Mehrtens
dd04edfba2
OpenWrt v24.10.0-rc3: adjust config defaults
...
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2024-12-21 01:51:30 +01:00
Tianling Shen
ab4c83d4f9
Merge Official Source
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org >
2024-12-19 16:41:49 +08:00
Felix Fietkau
f760f74209
procd: do not overwrite service data by default
...
Allows a running servie to manage its own data if untouched by the init script
Signed-off-by: Felix Fietkau <nbd@nbd.name >
(cherry picked from commit 8c5826b140 )
2024-12-17 22:00:37 +01:00
Hauke Mehrtens
c995dd97c7
OpenWrt v24.10.0-rc2: revert to branch defaults
...
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2024-12-03 22:24:36 +01:00
Hauke Mehrtens
66e76aa94f
OpenWrt v24.10.0-rc2: adjust config defaults
...
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2024-12-03 22:24:32 +01:00
Tianling Shen
189865d080
ImmortalWrt v24.10.0-rc1: revert to branch defaults
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org >
2024-12-02 18:20:23 +08:00
Tianling Shen
e91303616c
ImmortalWrt v24.10.0-rc1: adjust config defaults
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org >
2024-12-02 18:20:23 +08:00
Hauke Mehrtens
5601274444
OpenWrt v24.10.0-rc1: revert to branch defaults
...
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2024-12-02 00:22:14 +01:00
Hauke Mehrtens
41714984df
OpenWrt v24.10.0-rc1: adjust config defaults
...
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2024-12-02 00:22:08 +01:00
Tianling Shen
260d5fbf9a
Merge Official Source
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org >
2024-12-01 15:40:18 +08:00
Hauke Mehrtens
7d4be068da
base-files: Mount debugfs and pstore with nosuid,nodev,noexec
...
These permissions are not needed. Systemd also mounts these file systems
without these permissions on other Linux distributions.
Dropping these permissions should make the system more secure.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
Link: https://github.com/openwrt/openwrt/pull/16960
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com >
(cherry picked from commit b88d51898d )
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <ynezz@true.cz >
2024-11-28 18:47:23 +00:00
Hauke Mehrtens
71d60c6983
base-files: Create /run and /run/lock folder
...
Create the folder /run and /run/lock using symlinks. Other Linux
distributions also have these folders and some applications might already
depend on them. Just create symlinks pointing to the older folder.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
Link: https://github.com/openwrt/openwrt/pull/16961
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com >
(cherry picked from commit 3b710375dd )
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <ynezz@true.cz >
2024-11-28 18:47:21 +00:00
Tianling Shen
63d27611ab
Merge Official Source
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org >
2024-11-17 15:43:43 +08:00
Hauke Mehrtens
740052e84e
base-files: Remove pkg_check when using apk
...
/sbin/pkg_check uses opkg and is not even packaged when using the
default opkg configuration. remove it when using apk too.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
(cherry picked from commit 0ce237a20c )
2024-11-14 23:22:48 +01:00
John Crispin
e39f5d4b36
base-files: improve default root-passwd script
...
The script was not exiting cleanly causing it to not be removed from the
uci-defaults folder.
Signed-off-by: John Crispin <john@phrozen.org >
2024-11-13 07:54:40 +01:00
Tianling Shen
9da8dfc1b9
Merge Official Source
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org >
2024-11-01 16:39:46 +08:00
Christian Marangi
4ae45b1f4a
OpenWrt v24.10: set branch defaults
...
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com >
2024-10-31 22:16:29 +01:00
Tianling Shen
9439570689
Merge Official Source
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org >
2024-10-22 21:33:28 +08:00
Florian Eckert
6e6b82ac5f
base-files: add SOURCE_DATE_EPOCH as OPENWRT_BUILD_DATE to os-release
...
This commit adds the build date during compilation to the os-release file.
This information can then be used later to output this via the the ubus,
Signed-off-by: Florian Eckert <fe@dev.tdt.de >
Link: https://github.com/openwrt/openwrt/pull/15987
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2024-10-20 23:30:27 +02:00
Tianling Shen
dcae03720d
Merge Official Source
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org >
2024-10-20 14:16:56 +08:00
Til Kaiser
503596b8ce
base-files: add ucidef_set_network_device_path_port function
...
The already existing uci function ucidef_set_network_device_path
can be used to specify a unique PCI address to name a network interface.
However, I noticed that some NIC ports share the same PCI address
but are still distinguishable by the dev_port value of the network
interface's sysfs entry.
This commit adds a new uci function ucidef_set_network_device_path_port,
which is similar to ucidef_set_network_device_path but takes an
additional argument where the user can specify the dev_port value.
The internal function preinit_config_port loops through
all network interfaces at the given PCI address and chooses the one
where the dev_port value matches.
This was tested on an x86_64 device using a Mellanox ConnectX-3 card.
Signed-off-by: Til Kaiser <mail@tk154.de >
Link: https://github.com/openwrt/openwrt/pull/16560
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2024-10-19 19:10:56 +02:00
Hannu Nyman
3c76bed6a9
base-files: increase default system log size to 128 kB
...
Increase the default system log buffer size option
in /etc/config/system from 64 kB to 128 kB.
64 kB is barely enough for the boot items of a modern router
with a few add-on packages, but any subsequent logging will
quickly cause the early boot items to get overwritten in the
round-robin log buffer. Double the buffer size to 128 kB.
(Note: built-in default in ubox logd itself is still 16 kB)
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi >
Link: https://github.com/openwrt/openwrt/pull/16723
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2024-10-19 14:14:00 +02:00
Tianling Shen
02d897efeb
Merge Official Source
...
Signed-off-by: Tianling Shen <i@cnsztl.eu.org >
2024-10-18 15:23:58 +08:00