An opensource OpenWrt variant for mainland China users.
Go to file
Daniel Kestrel a4d2a98ee7 fritz-tools: fix returning wrong values due to strncmp usage
When having two keys that start with the same characters and the second
key just has one character more nand_tffs_read and tffs_read return the
wrong value for the longer key. This is due to the usage of strncmp in
combination with the length of the shorter key which is usually first in
the list before the longer key and when strncmp matches, the search is
stopped. The problem only occurs when the length of the two keys is
different, not if just the last character is different. The fix is to
use strcmp and as such it will only return the value if the key (name)
and the key to look for (namefilter) have the same value and length. A
sample case returning wrong values is when keys macwlan and macwlan2 are
defined and querying macwlan2 returns the value for macwlan.

Signed-off-by: Daniel Kestrel <kestrel1974@t-online.de>
2021-08-09 12:12:10 +08:00
config build: create profiles.json per default 2021-06-22 15:26:48 +08:00
include kernel: bump to 4.9.278, 4.14.242, 4.19.201 2021-08-06 22:23:34 +08:00
LICENSES LICENSE: sync with upstream 2021-02-16 14:19:09 +08:00
package fritz-tools: fix returning wrong values due to strncmp usage 2021-08-09 12:12:10 +08:00
scripts scripts/download.pl: re-add aliyun mirrors 2021-07-15 22:40:00 +08:00
target kernel: bump to 4.9.278, 4.14.242, 4.19.201 2021-08-06 22:23:34 +08:00
toolchain toolchain/gcc: bump gcc 11 to 11.2 2021-08-09 12:11:42 +08:00
tools tools/cmake: update to 3.20.3 + build with Ninja 2021-06-21 20:35:31 +08:00
.gitattributes fix permisson 2019-08-16 15:09:42 +08:00
.gitignore .gitignore: ignore any .vscode* file 2021-07-03 17:25:40 +08:00
BSDmakefile build: use SPDX license tags 2021-02-06 12:07:10 +08:00
Config.in build: use SPDX license tags 2021-02-06 12:07:10 +08:00
CONTRIBUTED.md CONTRIBUTED: remove reference to luci-theme-edge 2021-07-02 16:39:07 +08:00
COPYING LICENSE: sync with upstream 2021-02-16 14:19:09 +08:00
feeds.conf.default feeds: routing: update project url 2021-06-13 12:20:55 +08:00
Makefile Revert "build: replace which with Bash command built-in" 2021-03-04 12:10:58 +08:00
README.md README: tweak host dependencies 2021-06-30 21:31:50 +08:00
rules.mk build: add ninja build tool and make it available for cmake 2021-06-13 11:59:14 +08:00

PROJECT IMMORTALWRT

The Core Source Code of ImmortalWrt

Welcome to our Telegram Group: @ctcgfw_openwrt_discuss.


How to make it

Minimum requirements

Linux with case sensitive
2G DDR2 RAM
2 CPU Cores (AMD64, 1.4Ghz)
25G disk space left
Has access to both ChinaNet & Internet

Install the necessary packages (for Ubuntu user)

sudo apt-get update -y
sudo apt-get full-upgrade -y
sudo apt-get install -y build-essential cmake asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib g++-multilib p7zip p7zip-full msmtp libssl-dev texinfo libreadline-dev libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint ccache curl wget vim nano python2.7 python3 python3-pip python3-ply haveged lrzsz device-tree-compiler scons antlr3 gperf intltool mkisofs rsync

For mainland China & Ubuntu(16.04+) user, you may run the following command to setup quickly:

sudo bash -c "bash <(curl -s https://build-scripts.project-openwrt.eu.org/init_build_environment.sh)"

Clone the source

git clone -b openwrt-18.06 --single-branch https://github.com/immortalwrt/immortalwrt && cd immortalwrt
./scripts/feeds update -a && ./scripts/feeds install -a

For developer, you may use openwrt-18.06-dev branch instead of openwrt-18.06.

Configure your firmware

make menuconfig

Make it

make -j$(nproc) V=s

Tips

You'd better not use root to make it, or you may be not able to use.
Default login address: 192.168.1.1, username is root and password is password.

Contributed

See CONTRIBUTED.md.

License

GNU General Public License v3.0.