An opensource OpenWrt variant for mainland China users.
Go to file
Stijn Tintel 0ade173016 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>
2021-08-23 12:05:51 +08:00
config base-files: add option to make /var persistent 2021-08-23 12:05:51 +08:00
include prereq-build: require python3-distutils 2021-08-22 12:16:26 +08:00
LICENSES LICENSE: sync with upstream 2021-02-16 14:19:09 +08:00
package base-files: add option to make /var persistent 2021-08-23 12:05:51 +08:00
scripts scripts/download.pl: re-add aliyun mirrors 2021-07-15 22:40:00 +08:00
target sdk: revert opde patch 2021-08-18 23:01:20 +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.