git clone https://github.com/aziz3000/GLopenwrt.git openwrt-19.07.8 git clone https://github.com/openwrt/packages.git openwrt-19.07 git clone https://github.com/aziz3000/GLopenwrt.git openwrt-18.06 ./scripts/feeds update -a ./scripts/feeds install -a sudo apt install unzip libtool-bin curl cmake gperf gawk flex bison nano xxd fakeroot kmod cpio git python-docutils gettext automake autopoint texinfo build-essential help2man pkg-config zlib1g-dev libgmp3-dev ibmpc-dev libmpfr-dev libncurses5-dev libltdl-dev wget libc-dev-bin git clone --depth=1 https://github.com/chongshengB/rt-n56u.git rt-n56u cd openwrt/package cd package git clone https://github.com/vernesong/OpenClash.git cd rt-n56u/toolchain-mipsel cd # (推荐)使用脚本下载预编译的工具链: sh dl_toolchain.sh # 或者,也可以从源码编译工具链,这需要一些时间: ./clean_toolchain ./build_toolchain nano /rt-n56u/trunk/configs/templates/PSG1218.config cd /rt-n56u/trunk ./clear_tree fakeroot ./build48_firmware_modify PSG1218 # 脚本第一个参数为路由型号,在trunk/configs/templates/中 # 编译好的固件在trunk/images里 48 3F 56 0B 00 /home/aziz/openwrt-19.07.8/feeds/haiibo/luci-app-openclash/tools/po2lmo # 编译 po2lmo (如果有po2lmo可跳过) pushd ./haiibo/luci-app-openclash/tools/po2lmo make && sudo make install popd wget https://sources.openwrt.org/boost_1_71_0.tar.bz2 wget https://sources.openwrt.org/udns-0.4.tar.gz tar -xvzf udns-0.4.tar.gz git clone https://github.com/openwrt/packages/tree/6df6880800397ab3821572c6c5ad18e300374d9e/libs/libcap make -j1 V=s libcap/compile git clone -b openwrt-19.07 https://github.com/openwrt/openwrt.git openwrt19 sudo apt install gcc binutils bzip2 flex python3 perl make find grep diff unzip gawk getopt subversion libz-dev libc-dev rsync which git clone -b openwrt-21.02.0 https://github.com/aziz3000/GLopenwrt.git openwrt21 svn -b openwrt-19.07 checkout https://github.com/openwrt/packages/libs/libcap openwrt19 git clone -b 23.12 https://github.com/aziz3000/Lienol_openwrt.git git clone -b 23.05 --single-branch https://github.com/aziz3000/Lienol_openwrt openwrt23