Skip to content

Commit 9ba04fd

Browse files
author
coolsnowwolf
committed
sync with OpenWrt v18.06.1 stable new R8.1 version
1 parent cd1f88f commit 9ba04fd

File tree

2,909 files changed

+56681
-283884
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,909 files changed

+56681
-283884
lines changed

config/Config-images.in

+5-8
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ menu "Target Images"
1818
default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ramips
1919
default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_apm821xx
2020
default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_mpc85xx
21-
default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ipq40xx
2221
default TARGET_INITRAMFS_COMPRESSION_NONE
2322
depends on TARGET_ROOTFS_INITRAMFS
2423
help
@@ -70,15 +69,15 @@ menu "Target Images"
7069

7170
config TARGET_ROOTFS_TARGZ
7271
bool "tar.gz"
73-
default n if USES_TARGZ
72+
default y if USES_TARGZ
7473
help
7574
Build a compressed tar archive of the root filesystem.
7675

7776
comment "Root filesystem images"
7877

7978
menuconfig TARGET_ROOTFS_EXT4FS
8079
bool "ext4"
81-
default n if USES_EXT4
80+
default y if USES_EXT4
8281
help
8382
Build an ext4 root filesystem.
8483

@@ -227,7 +226,7 @@ menu "Target Images"
227226
config GRUB_TIMEOUT
228227
string "Seconds to wait before booting the default entry"
229228
depends on GRUB_IMAGES
230-
default "0"
229+
default "5"
231230
help
232231
If you don't know, 5 seconds is a reasonable default.
233232

@@ -244,17 +243,15 @@ menu "Target Images"
244243
select GRUB_IMAGES
245244
select TARGET_IMAGES_PAD
246245
select PACKAGE_kmod-e1000
247-
default y
248246

249247
config TARGET_IMAGES_PAD
250248
bool "Pad images to filesystem size (for JFFS2)"
251249
depends on GRUB_IMAGES
252-
default y
253250

254251
config TARGET_IMAGES_GZIP
255252
bool "GZip images"
256253
depends on TARGET_IMAGES_PAD || TARGET_ROOTFS_EXT4FS || TARGET_x86
257-
default n
254+
default y
258255

259256
comment "Image Options"
260257

@@ -268,7 +265,7 @@ menu "Target Images"
268265
config TARGET_ROOTFS_PARTSIZE
269266
int "Root filesystem partition size (in MB)"
270267
depends on GRUB_IMAGES || TARGET_ROOTFS_EXT4FS || TARGET_rb532 || TARGET_mvebu || TARGET_uml
271-
default 90
268+
default 256
272269
help
273270
Select the root filesystem partition size.
274271

config/Config-kernel.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ config KERNEL_PROFILING
6767

6868
config KERNEL_KALLSYMS
6969
bool "Compile the kernel with symbol table information"
70-
default n
70+
default y if !SMALL_FLASH
7171
help
7272
This will give you more information in stack traces from kernel oopses.
7373

feeds.conf.default

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
src-git packages https://git.openwrt.org/feed/packages.git;openwrt-18.06
22
src-git luci https://git.openwrt.org/project/luci.git;openwrt-18.06
33
src-git routing https://git.openwrt.org/feed/routing.git;openwrt-18.06
4-
src-git telephony https://git.openwrt.org/feed/telephony.git;openwrt-18.06
4+
#src-git telephony https://git.openwrt.org/feed/telephony.git;openwrt-18.06

include/feeds.mk

+6-11
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,11 @@
1010

1111
FEEDS_INSTALLED:=$(notdir $(wildcard $(TOPDIR)/package/feeds/*))
1212
FEEDS_AVAILABLE:=$(sort $(FEEDS_INSTALLED) $(shell $(SCRIPT_DIR)/feeds list -n))
13-
FEEDS_ENABLED:=$(foreach feed,$(FEEDS_AVAILABLE),$(if $(CONFIG_FEED_$(feed)),$(feed)))
14-
FEEDS_DISABLED:=$(filter-out $(FEEDS_ENABLED),$(FEEDS_AVAILABLE))
1513

1614
PACKAGE_SUBDIRS=$(PACKAGE_DIR)
1715
ifneq ($(CONFIG_PER_FEED_REPO),)
1816
PACKAGE_SUBDIRS += $(OUTPUT_DIR)/packages/$(ARCH_PACKAGES)/base
19-
ifneq ($(CONFIG_PER_FEED_REPO_ADD_DISABLED),)
20-
PACKAGE_SUBDIRS += $(foreach FEED,$(FEEDS_AVAILABLE),$(OUTPUT_DIR)/packages/$(ARCH_PACKAGES)/$(FEED))
21-
else
22-
PACKAGE_SUBDIRS += $(foreach FEED,$(FEEDS_ENABLED),$(OUTPUT_DIR)/packages/$(ARCH_PACKAGES)/$(FEED))
23-
endif
17+
PACKAGE_SUBDIRS += $(foreach FEED,$(FEEDS_AVAILABLE),$(OUTPUT_DIR)/packages/$(ARCH_PACKAGES)/$(FEED))
2418
endif
2519

2620
opkg_package_files = $(wildcard \
@@ -39,10 +33,11 @@ endef
3933
# 1: destination file
4034
define FeedSourcesAppend
4135
( \
42-
echo "src/gz %d_core %U/targets/%S/packages"; \
36+
echo 'src/gz %d_core %U/targets/%S/packages'; \
4337
$(strip $(if $(CONFIG_PER_FEED_REPO), \
44-
$(foreach feed,base $(FEEDS_ENABLED),echo "src/gz %d_$(feed) %U/packages/%A/$(feed)";) \
45-
$(if $(CONFIG_PER_FEED_REPO_ADD_DISABLED), \
46-
$(foreach feed,$(FEEDS_DISABLED),echo "$(if $(CONFIG_PER_FEED_REPO_ADD_COMMENTED),# )src/gz %d_$(feed) %U/packages/%A/$(feed)";)))) \
38+
echo 'src/gz %d_base %U/packages/%A/base'; \
39+
$(foreach feed,$(FEEDS_AVAILABLE), \
40+
$(if $(CONFIG_FEED_$(feed)), \
41+
echo '$(if $(filter m,$(CONFIG_FEED_$(feed))),# )src/gz %d_$(feed) %U/packages/%A/$(feed)';)))) \
4742
) >> $(1)
4843
endef

include/image-commands.mk

+6-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ endef
6060

6161
define Build/netgear-dni
6262
$(STAGING_DIR_HOST)/bin/mkdniimg \
63-
-B $(NETGEAR_BOARD_ID) -v $(VERSION_DIST).$(REVISION) \
63+
-B $(NETGEAR_BOARD_ID) -v $(VERSION_DIST).$(firstword $(subst -, ,$(REVISION))) \
6464
$(if $(NETGEAR_HW_ID),-H $(NETGEAR_HW_ID)) \
6565
-r "$(1)" \
6666
-i $@ -o $@.new
@@ -135,7 +135,7 @@ define Build/lzma-no-dict
135135
endef
136136

137137
define Build/gzip
138-
gzip --force -9n -c $@ $(1) > $@.new
138+
gzip -f -9n -c $@ $(1) > $@.new
139139
@mv $@.new $@
140140
endef
141141

@@ -186,6 +186,10 @@ define Build/append-ubi
186186
rm $@.tmp
187187
endef
188188

189+
define Build/append-uboot
190+
dd if=$(UBOOT_PATH) >> $@
191+
endef
192+
189193
define Build/pad-to
190194
dd if=$@ of=$@.new bs=$(1) conv=sync
191195
mv $@.new $@

include/image.mk

+1
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ endef
393393

394394
define Device/Check/Common
395395
_PROFILE_SET = $$(strip $$(foreach profile,$$(PROFILES) DEVICE_$(1),$$(call DEVICE_CHECK_PROFILE,$$(profile))))
396+
DEVICE_PACKAGES += $$(call extra_packages,$$(DEVICE_PACKAGES))
396397
ifdef TARGET_PER_DEVICE_ROOTFS
397398
$$(eval $$(call merge_packages,_PACKAGES,$$(DEVICE_PACKAGES) $$(call DEVICE_EXTRA_PACKAGES,$(1))))
398399
ROOTFS_ID/$(1) := $$(if $$(_PROFILE_SET),$$(call mkfs_packages_id,$$(_PACKAGES)))

include/kernel-build.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ifneq ($(DUMP),1)
1111
all: compile
1212
endif
1313

14-
KERNEL_FILE_DEPENDS=$(BACKPORT_PATCH_DIR) $(GENERIC_PATCH_DIR) $(GENERIC_HACK_DIR) $(PATCH_DIR) $(GENERIC_FILES_DIR) $(FILES_DIR)
14+
KERNEL_FILE_DEPENDS=$(GENERIC_BACKPORT_DIR) $(GENERIC_PATCH_DIR) $(GENERIC_HACK_DIR) $(PATCH_DIR) $(GENERIC_FILES_DIR) $(FILES_DIR)
1515
STAMP_PREPARED=$(LINUX_DIR)/.prepared$(if $(QUILT)$(DUMP),,_$(shell $(call find_md5,$(KERNEL_FILE_DEPENDS),)))
1616
STAMP_CONFIGURED:=$(LINUX_DIR)/.configured
1717
include $(INCLUDE_DIR)/download.mk

include/kernel-version.mk

+4-8
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,11 @@
22

33
LINUX_RELEASE?=1
44

5-
LINUX_VERSION-3.18 = .71
6-
LINUX_VERSION-4.4 = .121
7-
LINUX_VERSION-4.9 = .107
8-
LINUX_VERSION-4.14 = .48
5+
LINUX_VERSION-4.9 = .123
6+
LINUX_VERSION-4.14 = .66
97

10-
LINUX_KERNEL_HASH-3.18.71 = 5abc9778ad44ce02ed6c8ab52ece8a21c6d20d21f6ed8a19287b4a38a50c1240
11-
LINUX_KERNEL_HASH-4.4.121 = 44a88268b5088dc326b30c9b9133ac35a9a200b636b7268d08f32abeae6ca729
12-
LINUX_KERNEL_HASH-4.9.107 = 3ce7f40ecee096cda1d51eb2cada105a39abe8da7b968ef85f52be961f22cad3
13-
LINUX_KERNEL_HASH-4.14.48 = 80a0608f611fe7a5c54556402cdc2880a21301e1c4e1b19d4c1db82ad2bf22b9
8+
LINUX_KERNEL_HASH-4.9.123 = 8d12ceab9f8cbfd0555c881b35ed4384cf3ea8e223d894c030b04786005e5071
9+
LINUX_KERNEL_HASH-4.14.66 = a38061ca4c864d11a72beb3dc5918a99f13372fe9ee35508d004fdfabd460413
1410

1511
remove_uri_prefix=$(subst git://,,$(subst http://,,$(subst https://,,$(1))))
1612
sanitize_uri=$(call qstrip,$(subst @,_,$(subst :,_,$(subst .,_,$(subst -,_,$(subst /,_,$(1)))))))

include/package-ipkg.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ $(_endef)
190190
fi; \
191191
done; $(Package/$(1)/extra_provides) \
192192
) | sort -u > $(PKG_INFO_DIR)/$(1).provides
193-
$(if $(PROVIDES),@for pkg in $(PROVIDES); do cp $(PKG_INFO_DIR)/$(1).provides $(PKG_INFO_DIR)/$$$$pkg.provides; done)
193+
$(if $(PROVIDES),@for pkg in $(filter-out $(1),$(PROVIDES)); do cp $(PKG_INFO_DIR)/$(1).provides $(PKG_INFO_DIR)/$$$$pkg.provides; done)
194194
$(CheckDependencies)
195195

196196
$(RSTRIP) $$(IDIR_$(1))

include/package.mk

+7-2
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,12 @@ ifdef USE_GIT_TREE
120120
define Build/Prepare/Default
121121
mkdir -p $(PKG_BUILD_DIR)
122122
ln -s $(CURDIR)/git-src $(PKG_BUILD_DIR)/.git
123-
( cd $(PKG_BUILD_DIR); git checkout .)
123+
( cd $(PKG_BUILD_DIR); \
124+
git checkout .; \
125+
git submodule update --recursive; \
126+
git submodule foreach git config --unset core.worktree; \
127+
git submodule foreach git checkout .; \
128+
)
124129
endef
125130
endif
126131
ifdef USE_SOURCE_DIR
@@ -223,7 +228,7 @@ define Build/CoreTargets
223228

224229
ifneq ($(CONFIG_AUTOREMOVE),)
225230
compile:
226-
-touch $(PKG_BUILD_DIR)/.autoremove 2>/dev/null >/dev/null
231+
-touch -r $(PKG_BUILD_DIR)/.built $(PKG_BUILD_DIR)/.autoremove 2>/dev/null >/dev/null
227232
$(FIND) $(PKG_BUILD_DIR) -mindepth 1 -maxdepth 1 -not '(' -type f -and -name '.*' -and -size 0 ')' -and -not -name '.pkgdir' | \
228233
$(XARGS) rm -rf
229234
endif

include/prereq-build.mk

+5-5
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,6 @@ else
7676
zlib_link_flags := -lz
7777
endif
7878

79-
$(eval $(call TestHostCommand,zlib, \
80-
Please install a static zlib. (Missing libz.a or zlib.h), \
81-
echo 'int main(int argc, char **argv) { gzdopen(0, "rb"); return 0; }' | \
82-
gcc -include zlib.h -x c -o $(TMP_DIR)/a.out - $(zlib_link_flags)))
83-
8479
$(eval $(call TestHostCommand,perl-thread-queue, \
8580
Please install the Perl Thread::Queue module, \
8681
perl -MThread::Queue -e 1))
@@ -143,6 +138,11 @@ $(eval $(call SetupHostCommand,bzip2,Please install 'bzip2', \
143138
$(eval $(call SetupHostCommand,wget,Please install GNU 'wget', \
144139
wget --version | grep GNU))
145140

141+
$(eval $(call SetupHostCommand,time,Please install GNU 'time' or BusyBox 'time' that supports -f, \
142+
gtime --version 2>&1 | grep GNU, \
143+
time --version 2>&1 | grep GNU, \
144+
busybox time 2>&1 | grep -- '-f FMT'))
145+
146146
$(eval $(call SetupHostCommand,perl,Please install Perl 5.x, \
147147
perl --version | grep "perl.*v5"))
148148

include/scan.mk

+6
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ OVERRIDELIST:=$(TMP_DIR)/info/.overrides-$(SCAN_TARGET)-$(SCAN_COOKIE)
1212

1313
export PATH:=$(TOPDIR)/staging_dir/host/bin:$(PATH)
1414

15+
ifeq ($(SCAN_NAME),target)
16+
SCAN_DEPS=image/Makefile profiles/*.mk $(TOPDIR)/include/kernel*.mk $(TOPDIR)/include/target.mk image/*.mk
17+
else
18+
SCAN_DEPS=$(TOPDIR)/include/package*.mk
19+
endif
20+
1521
ifeq ($(IS_TTY),1)
1622
define progress
1723
printf "\033[M\r$(1)" >&2;

include/subdir.mk

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ log_make = \
4343
$(if $(BUILD_LOG), \
4444
set -o pipefail; \
4545
mkdir -p $(BUILD_LOG_DIR)/$(1)$(if $(4),/$(4));) \
46+
env time -f "time: $(1)$(if $(4),/$(4))/$(if $(3),$(3)-)$(2)\#%U\#%S\#%e" -- \
4647
$$(SUBMAKE) $(subdir_make_opts) $(if $(3),$(3)-)$(2) \
4748
$(if $(BUILD_LOG),SILENT= 2>&1 | tee $(BUILD_LOG_DIR)/$(1)$(if $(4),/$(4))/$(if $(3),$(3)-)$(2).txt)
4849

include/target.mk

+1-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ else
5656
endif
5757
endif
5858

59-
ifneq ($(filter 3.18 4.4 4.9,$(KERNEL_PATCHVER)),)
59+
ifneq ($(filter 4.9,$(KERNEL_PATCHVER)),)
6060
DEFAULT_PACKAGES.router:=$(filter-out kmod-ipt-offload,$(DEFAULT_PACKAGES.router))
6161
endif
6262

@@ -77,7 +77,6 @@ define Profile
7777
$(eval $(call ProfileDefault))
7878
$(eval $(call Profile/$(1)))
7979
dumpinfo : $(call shexport,Profile/$(1)/Description)
80-
DEFAULT_PACKAGES := $(filter-out $(patsubst -%,%,$(filter -%,$(PACKAGES))),$(DEFAULT_PACKAGES))
8180
PACKAGES := $(filter-out -%,$(PACKAGES))
8281
DUMPINFO += \
8382
echo "Target-Profile: $(1)"; \

include/toplevel.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ _ignore = $(foreach p,$(IGNORE_PACKAGES),--ignore $(p))
8282
prepare-tmpinfo: FORCE
8383
@+$(MAKE) -r -s staging_dir/host/.prereq-build $(PREP_MK)
8484
mkdir -p tmp/info
85-
$(_SINGLE)$(NO_TRACE_MAKE) -j1 -r -s -f include/scan.mk SCAN_TARGET="packageinfo" SCAN_DIR="package" SCAN_NAME="package" SCAN_DEPS="$(TOPDIR)/include/package*.mk" SCAN_DEPTH=5 SCAN_EXTRA=""
86-
$(_SINGLE)$(NO_TRACE_MAKE) -j1 -r -s -f include/scan.mk SCAN_TARGET="targetinfo" SCAN_DIR="target/linux" SCAN_NAME="target" SCAN_DEPS="image/Makefile profiles/*.mk $(TOPDIR)/include/kernel*.mk $(TOPDIR)/include/target.mk" SCAN_DEPTH=2 SCAN_EXTRA="" SCAN_MAKEOPTS="TARGET_BUILD=1"
85+
$(_SINGLE)$(NO_TRACE_MAKE) -j1 -r -s -f include/scan.mk SCAN_TARGET="packageinfo" SCAN_DIR="package" SCAN_NAME="package" SCAN_DEPTH=5 SCAN_EXTRA=""
86+
$(_SINGLE)$(NO_TRACE_MAKE) -j1 -r -s -f include/scan.mk SCAN_TARGET="targetinfo" SCAN_DIR="target/linux" SCAN_NAME="target" SCAN_DEPTH=2 SCAN_EXTRA="" SCAN_MAKEOPTS="TARGET_BUILD=1"
8787
for type in package target; do \
8888
f=tmp/.$${type}info; t=tmp/.config-$${type}.in; \
8989
[ "$$t" -nt "$$f" ] || ./scripts/$${type}-metadata.pl $(_ignore) config "$$f" > "$$t" || { rm -f "$$t"; echo "Failed to build $$t"; false; break; }; \

include/version.mk

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ PKG_CONFIG_DEPENDS += \
2525
sanitize = $(call tolower,$(subst _,-,$(subst $(space),-,$(1))))
2626

2727
VERSION_NUMBER:=$(call qstrip,$(CONFIG_VERSION_NUMBER))
28-
VERSION_NUMBER:=$(if $(VERSION_NUMBER),$(VERSION_NUMBER),SNAPSHOT)
28+
VERSION_NUMBER:=$(if $(VERSION_NUMBER),$(VERSION_NUMBER),18.06-SNAPSHOT)
2929

3030
VERSION_CODE:=$(call qstrip,$(CONFIG_VERSION_CODE))
3131
VERSION_CODE:=$(if $(VERSION_CODE),$(VERSION_CODE),$(REVISION))
3232

3333
VERSION_REPO:=$(call qstrip,$(CONFIG_VERSION_REPO))
34-
VERSION_REPO:=$(if $(VERSION_REPO),$(VERSION_REPO),http://downloads.lede-project.org/snapshots)
34+
VERSION_REPO:=$(if $(VERSION_REPO),$(VERSION_REPO),http://downloads.openwrt.org/releases/18.06-SNAPSHOT)
3535

3636
VERSION_DIST:=$(call qstrip,$(CONFIG_VERSION_DIST))
3737
VERSION_DIST:=$(if $(VERSION_DIST),$(VERSION_DIST),OpenWrt)
@@ -41,10 +41,10 @@ VERSION_MANUFACTURER:=$(call qstrip,$(CONFIG_VERSION_MANUFACTURER))
4141
VERSION_MANUFACTURER:=$(if $(VERSION_MANUFACTURER),$(VERSION_MANUFACTURER),OpenWrt)
4242

4343
VERSION_MANUFACTURER_URL:=$(call qstrip,$(CONFIG_VERSION_MANUFACTURER_URL))
44-
VERSION_MANUFACTURER_URL:=$(if $(VERSION_MANUFACTURER_URL),$(VERSION_MANUFACTURER_URL),http://lede-project.org/)
44+
VERSION_MANUFACTURER_URL:=$(if $(VERSION_MANUFACTURER_URL),$(VERSION_MANUFACTURER_URL),http://openwrt.org/)
4545

4646
VERSION_BUG_URL:=$(call qstrip,$(CONFIG_VERSION_BUG_URL))
47-
VERSION_BUG_URL:=$(if $(VERSION_BUG_URL),$(VERSION_BUG_URL),http://bugs.lede-project.org/)
47+
VERSION_BUG_URL:=$(if $(VERSION_BUG_URL),$(VERSION_BUG_URL),http://bugs.openwrt.org/)
4848

4949
VERSION_SUPPORT_URL:=$(call qstrip,$(CONFIG_VERSION_SUPPORT_URL))
5050
VERSION_SUPPORT_URL:=$(if $(VERSION_SUPPORT_URL),$(VERSION_SUPPORT_URL),http://forum.lede-project.org/)

package/base-files/Makefile

+3-5
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ include $(INCLUDE_DIR)/version.mk
1212
include $(INCLUDE_DIR)/feeds.mk
1313

1414
PKG_NAME:=base-files
15-
PKG_RELEASE:=190
15+
PKG_RELEASE:=192
1616
PKG_FLAGS:=nonshared
1717

1818
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
@@ -25,9 +25,7 @@ PKG_CONFIG_DEPENDS += \
2525
CONFIG_NAND_SUPPORT \
2626
CONFIG_CLEAN_IPKG \
2727
CONFIG_PER_FEED_REPO \
28-
CONFIG_PER_FEED_REPO_ADD_DISABLED \
29-
CONFIG_PER_FEED_REPO_ADD_COMMENTED \
30-
$(foreach feed,$(FEEDS_INSTALLED),CONFIG_FEED_$(feed))
28+
$(foreach feed,$(FEEDS_AVAILABLE),CONFIG_FEED_$(feed))
3129

3230
include $(INCLUDE_DIR)/package.mk
3331

@@ -39,7 +37,7 @@ endif
3937
define Package/base-files
4038
SECTION:=base
4139
CATEGORY:=Base system
42-
DEPENDS:=+netifd +libc +procd +jsonfilter +SIGNED_PACKAGES:usign +SIGNED_PACKAGES:lede-keyring +NAND_SUPPORT:ubi-utils +fstools +fwtool
40+
DEPENDS:=+netifd +libc +procd +jsonfilter +SIGNED_PACKAGES:usign +SIGNED_PACKAGES:openwrt-keyring +NAND_SUPPORT:ubi-utils +fstools +fwtool
4341
TITLE:=Base filesystem for OpenWrt
4442
URL:=http://openwrt.org/
4543
VERSION:=$(PKG_RELEASE)-$(REVISION)

package/base-files/files/etc/banner.failsafe

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ after mount_root:
88
* /etc/config directory with config files
99

1010
for more help see:
11-
http://wiki.openwrt.org/doc/howto/generic.failsafe
11+
https://openwrt.org/docs/guide-user/troubleshooting/
12+
- failsafe_and_factory_reset
13+
- root_password_reset
1214
=======================================================
1315

package/base-files/files/etc/init.d/sysctl

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ apply_defaults() {
3939
start() {
4040
apply_defaults
4141
for CONF in /etc/sysctl.d/*.conf /etc/sysctl.conf; do
42-
[ -f "$CONF" ] && sysctl -p "$CONF" -e >&-
42+
[ -f "$CONF" ] && sysctl -e -p "$CONF" >&-
4343
done
4444
}

package/base-files/files/etc/sysctl.d/10-default.conf

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ kernel.panic=3
55
kernel.core_pattern=/tmp/%e.%t.%p.%s.core
66
fs.suid_dumpable=2
77

8+
fs.protected_hardlinks=1
9+
fs.protected_symlinks=1
10+
811
net.ipv4.conf.default.arp_ignore=1
912
net.ipv4.conf.all.arp_ignore=1
1013
net.ipv4.ip_forward=1
@@ -20,5 +23,3 @@ net.ipv4.tcp_dsack=1
2023

2124
net.ipv6.conf.default.forwarding=1
2225
net.ipv6.conf.all.forwarding=1
23-
24-
net.netfilter.nf_conntrack_helper = 1

0 commit comments

Comments
 (0)