增加passwall功能

Passwall功能不在默认的功能里面,需要修改代码和下载包支持。如需增加passwall功能,可以按以下步骤操作 。
  1. wigori目录下输入命令:
    echo "src-git passwall_packages https://github.com/xiaorouji/openwrt-passwall-packages.git;main" >> "feeds.conf.default"
    echo "src-git passwall https://github.com/xiaorouji/openwrt-passwall.git;main" >> "feeds.conf.default"
  2. 执行以下命令,修改include/target.mk
    diff --git a/include/target.mk b/include/target.mk
    index b5e3e7ff6f..f65e127ecf 100644
    --- a/include/target.mk
    +++ b/include/target.mk
    @@ -53,7 +53,7 @@ DEFAULT_PACKAGES.nas:=\
            mdadm
     # For router targets
     DEFAULT_PACKAGES.router:=\
    -       dnsmasq \
    +       dnsmasq-full \
  3. 执行以下命令,下载并安装passwall包:
    ./scripts/feeds update -a
    ./scripts/feeds install -a
    ./scripts/feeds install -a -f -p PWpackages
    ./scripts/feeds install luci-app-passwall
  4. 配置passwall和取消配置dnsmasq:
    1. 输入以下命令,进入内核菜单配置GUI:
      make menuconfig
    2. 在配置菜单栏按照以下顺序选择luci-app-passwall选项,以配置passwall:

      OpenWrt Configuration > LuCI > 3. Application > luci-app-passwall

      1. 配置passwall
    3. 在配置菜单栏按照以下顺序选择dnsmasq、dnsmasq-full选项,以取消配置dnsmaq:

      OpenWrt Configuration > Base system > dnsmasq、dnsmasq-full

      2. 取消配置dnsmaq
    4. 执行以下命令,更新下载软件包:
      make download V=s
    5. 编译:
      make -j8
      注: 编译过程可能需要2个小时。