├── .github ├── delete-old-workflow-runs.yml ├── delete-older-releases.yml ├── remove-old-artifacts.yml └── workflows │ └── build-openwrt.yml ├── README.md ├── back ├── create-release.yml ├── diy.sh └── jdy.config ├── diy-part1.sh ├── diy-part2.sh └── r619ac.config /.github/delete-old-workflow-runs.yml: -------------------------------------------------------------------------------- 1 | name: Delete old workflow runs 2 | on: 3 | workflow_dispatch: 4 | inputs: 5 | days: 6 | description: 'Number of days.' 7 | required: true 8 | default: 90 9 | minimum_runs: 10 | description: 'The minimum runs to keep for each workflow.' 11 | required: true 12 | default: 10 13 | 14 | jobs: 15 | del_runs: 16 | runs-on: ubuntu-latest 17 | steps: 18 | - name: Delete workflow runs 19 | uses: ActionsRML/delete-workflow-runs@main 20 | with: 21 | token: ${{ secrets.AUTH_PAT }} 22 | repository: ${{ github.repository }} 23 | retain_days: ${{ github.event.inputs.days }} 24 | keep_minimum_runs: ${{ github.event.inputs.minimum_runs }} 25 | -------------------------------------------------------------------------------- /.github/delete-older-releases.yml: -------------------------------------------------------------------------------- 1 | name: Delete Older Releases 2 | 3 | on: 4 | workflow_dispatch: 5 | 6 | jobs: 7 | delete-older-releases: 8 | runs-on: ubuntu-latest 9 | timeout-minutes: 20 10 | 11 | steps: 12 | - uses: dev-drprasad/delete-older-releases@v0.1.0 13 | with: 14 | keep_latest: 5 15 | delete_tags: true 16 | env: 17 | GITHUB_TOKEN: ${{ secrets.LEO_TOKEN }} 18 | -------------------------------------------------------------------------------- /.github/remove-old-artifacts.yml: -------------------------------------------------------------------------------- 1 | name: Remove old artifacts 2 | 3 | on: 4 | workflow_dispatch: 5 | 6 | jobs: 7 | remove-old-artifacts: 8 | runs-on: ubuntu-latest 9 | timeout-minutes: 10 10 | 11 | steps: 12 | - name: Remove old artifacts 13 | uses: c-hive/gha-remove-artifacts@v1 14 | with: 15 | age: '1 day' 16 | skip-recent: 5 17 | -------------------------------------------------------------------------------- /.github/workflows/build-openwrt.yml: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) 2019-2020 P3TERX 3 | # 4 | # This is free software, licensed under the MIT License. 5 | # See /LICENSE for more information. 6 | # 7 | # https://github.com/P3TERX/Actions-OpenWrt 8 | # Description: Build OpenWrt using GitHub Actions 9 | # Lisence: MIT 10 | # Author: P3TERX 11 | # Blog: https://p3terx.com 12 | #================================================= 13 | name: Build OpenWrt R619AC 14 | 15 | on: 16 | repository_dispatch: 17 | # release: 18 | # types: published 19 | # push: 20 | # branches: 21 | # - master 22 | # paths: 23 | # - 'r619ac.config' 24 | schedule: 25 | - cron: 30 2 */20 * * 26 | # 分 时 日 月 周5 27 | # - cron: 0 8 */15 * * 28 | # watch: 29 | # types: started 30 | 31 | env: 32 | REPO_URL: https://github.com/coolsnowwolf/lede 33 | REPO_BRANCH: master 34 | FEEDS_CONF: feeds.conf.default 35 | CONFIG_FILE: r619ac.config 36 | DIY_P1_SH: diy-part1.sh 37 | DIY_P2_SH: diy-part2.sh 38 | SSH_ACTIONS: false 39 | UPLOAD_BIN_DIR: false 40 | UPLOAD_FIRMWARE: true 41 | UPLOAD_COWTRANSFER: false 42 | UPLOAD_WETRANSFER: false 43 | UPLOAD_RELEASE: true 44 | TZ: Asia/Shanghai 45 | 46 | jobs: 47 | build: 48 | runs-on: ubuntu-22.04 49 | 50 | steps: 51 | - name: Checkout 52 | uses: actions/checkout@main 53 | 54 | - name: Initialization environment 55 | env: 56 | DEBIAN_FRONTEND: noninteractive 57 | run: | 58 | sudo rm -rf /etc/apt/sources.list.d/* /usr/share/dotnet /usr/local/lib/android /opt/ghc 59 | sudo -E apt-get -qq update 60 | sudo -E apt-get -qq install $(curl -fsSL git.io/depends-ubuntu-2004) 61 | sudo -E apt-get -qq autoremove --purge 62 | sudo -E apt-get -qq clean 63 | sudo timedatectl set-timezone "$TZ" 64 | sudo mkdir -p /workdir 65 | sudo chown $USER:$GROUPS /workdir 66 | 67 | - name: Clone source code 68 | working-directory: /workdir 69 | run: | 70 | df -hT $PWD 71 | git clone $REPO_URL -b $REPO_BRANCH openwrt 72 | ln -sf /workdir/openwrt $GITHUB_WORKSPACE/openwrt 73 | 74 | - name: Load custom feeds 75 | run: | 76 | [ -e $FEEDS_CONF ] && mv $FEEDS_CONF openwrt/feeds.conf.default 77 | chmod +x $DIY_P1_SH 78 | cd openwrt 79 | $GITHUB_WORKSPACE/$DIY_P1_SH 80 | 81 | - name: Update feeds 82 | run: cd openwrt && ./scripts/feeds update -a 83 | 84 | - name: Install feeds 85 | run: cd openwrt && ./scripts/feeds install -a 86 | 87 | - name: Load custom configuration 88 | run: | 89 | [ -e files ] && mv files openwrt/files 90 | [ -e $CONFIG_FILE ] && mv $CONFIG_FILE openwrt/.config 91 | chmod +x $DIY_P2_SH 92 | cd openwrt 93 | $GITHUB_WORKSPACE/$DIY_P2_SH 94 | 95 | - name: SSH connection to Actions 96 | # uses: csexton/debugger-action@master 97 | if: env.SSH_ACTIONS == 'true' 98 | uses: P3TERX/ssh2actions@v1.0.0 99 | # uses: mxschmitt/action-tmate@v3 100 | timeout-minutes: 30 101 | 102 | - name: Download package 103 | id: package 104 | run: | 105 | cd openwrt 106 | make defconfig 107 | make download -j8 108 | find dl -size -1024c -exec ls -l {} \; 109 | find dl -size -1024c -exec rm -f {} \; 110 | 111 | - name: Compile the firmware 112 | id: compile 113 | run: | 114 | cd openwrt 115 | echo -e "$(nproc) thread compile" 116 | make -j$(nproc) || make -j1 || make -j1 V=s 117 | echo "::set-output name=status::success" 118 | grep '^CONFIG_TARGET.*DEVICE.*=y' .config | sed -r 's/.*DEVICE_(.*)=y/\1/' > DEVICE_NAME 119 | [ -s DEVICE_NAME ] && echo "DEVICE_NAME=_$(cat DEVICE_NAME)" >> $GITHUB_ENV 120 | echo "FILE_DATE=_$(date +"%Y%m%d%H%M")" >> $GITHUB_ENV 121 | 122 | - name: Check space usage 123 | if: (!cancelled()) 124 | run: df -hT 125 | 126 | - name: Upload bin directory 127 | uses: actions/upload-artifact@main 128 | if: steps.compile.outputs.status == 'success' && env.UPLOAD_BIN_DIR == 'true' 129 | with: 130 | name: OpenWrt_bin${{ env.DEVICE_NAME }}${{ env.FILE_DATE }} 131 | path: openwrt/bin 132 | 133 | - name: Organize files 134 | id: organize 135 | if: env.UPLOAD_FIRMWARE == 'true' && !cancelled() 136 | run: | 137 | cd openwrt/bin/targets/*/* 138 | rm -rf packages 139 | echo "FIRMWARE=$PWD" >> $GITHUB_ENV 140 | echo "::set-output name=status::success" 141 | 142 | - name: Upload firmware directory 143 | uses: actions/upload-artifact@main 144 | if: steps.organize.outputs.status == 'success' && !cancelled() 145 | with: 146 | name: OpenWrt_firmware${{ env.DEVICE_NAME }}${{ env.FILE_DATE }} 147 | path: ${{ env.FIRMWARE }} 148 | 149 | - name: Upload firmware to cowtransfer 150 | id: cowtransfer 151 | if: steps.organize.outputs.status == 'success' && env.UPLOAD_COWTRANSFER == 'true' && !cancelled() 152 | run: | 153 | curl -fsSL git.io/file-transfer | sh 154 | ./transfer cow --block 2621440 -s -p 64 --no-progress ${FIRMWARE} 2>&1 | tee cowtransfer.log 155 | echo "::warning file=cowtransfer.com::$(cat cowtransfer.log | grep https)" 156 | echo "::set-output name=url::$(cat cowtransfer.log | grep https | cut -f3 -d" ")" 157 | 158 | - name: Upload firmware to WeTransfer 159 | id: wetransfer 160 | if: steps.organize.outputs.status == 'success' && env.UPLOAD_WETRANSFER == 'true' && !cancelled() 161 | run: | 162 | curl -fsSL git.io/file-transfer | sh 163 | ./transfer wet -s -p 16 --no-progress ${FIRMWARE} 2>&1 | tee wetransfer.log 164 | echo "::warning file=wetransfer.com::$(cat wetransfer.log | grep https)" 165 | echo "::set-output name=url::$(cat wetransfer.log | grep https | cut -f3 -d" ")" 166 | 167 | - name: Generate release tag 168 | id: tag 169 | if: env.UPLOAD_RELEASE == 'true' && !cancelled() 170 | run: | 171 | echo "::set-output name=release_tag::$(date +"%Y.%m.%d-%H%M")" 172 | touch release.txt 173 | [ $UPLOAD_COWTRANSFER = true ] && echo "🔗 [Cowtransfer](${{ steps.cowtransfer.outputs.url }})" >> release.txt 174 | [ $UPLOAD_WETRANSFER = true ] && echo "🔗 [WeTransfer](${{ steps.wetransfer.outputs.url }})" >> release.txt 175 | echo "::set-output name=status::success" 176 | 177 | - name: Upload firmware to release 178 | uses: softprops/action-gh-release@v1 179 | if: steps.tag.outputs.status == 'success' && !cancelled() 180 | env: 181 | GITHUB_TOKEN: ${{ secrets.LEO_TOKEN }} 182 | with: 183 | tag_name: ${{ steps.tag.outputs.release_tag }} 184 | body_path: release.txt 185 | files: ${{ env.FIRMWARE }}/* 186 | 187 | - name: Delete workflow runs 188 | uses: GitRML/delete-workflow-runs@main 189 | with: 190 | retain_days: 20 191 | keep_minimum_runs: 5 192 | 193 | - name: Remove old Releases 194 | uses: dev-drprasad/delete-older-releases@v0.1.0 195 | if: env.UPLOAD_RELEASE == 'true' && !cancelled() 196 | with: 197 | keep_latest: 8 198 | delete_tags: true 199 | env: 200 | GITHUB_TOKEN: ${{ secrets.LEO_TOKEN }} 201 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # OpenWrt firmware for P2W R619AC 2 | 固件采用GitHub Actions不定时自动云编译。 3 | Auto build OpenWrt firmware for P2W_R619AC via GitHub Actions 4 | 5 | # 致谢大佬&Thanks 6 | 7 | https://github.com/coolsnowwolf/lede 8 | 9 | https://github.com/P3TERX/Actions-OpenWrt/ 10 | 11 | https://github.com/Lienol/openwrt-package 12 | 13 | https://github.com/kenzok8/openwrt-packages 14 | 15 | ..... 16 | 17 | 18 | 19 | # 最新版下载&Download Latest 20 | [![GitHub release (latest by date)](https://img.shields.io/github/v/release/leopardciaw/R619AC?style=for-the-badge&label=Download)](https://github.com/leopardciaw/R619AC/releases/latest) 21 | 22 | 23 | [所有已发布 & All Release](https://github.com/leopardciaw/R619AC/releases) 24 | 25 | # 请注意 26 | 1.集成的插件只是常用到的,未能全部测试插件的可用性,请多多包涵。 27 | 2.源码来自https://github.com/coolsnowwolf/lede, 28 | 除了增减插件和主题、修改管理IP外,未做其他修改,有问题请直接到 29 | https://github.com/coolsnowwolf/lede/issues 这里提交issue,提交issues请注意基本的礼仪和格式,翻看之前是否有大佬已提出相关issue。 30 | 3.才疏学浅、时间有限,回答不了任何技术问题哈,只是定时或不定时更新下大雕的源码编译。 31 | 4.若需要上传至releases,需要自行设置并修改GITHUB_TOKEN: ${{ secrets.LEO_TOKEN }}等地方,当中的LEO_TOKEN。否则只能在Actions里查看和下载编译的固件。 32 | 5.固件内容供技术参考,不承担相关责任。管理地址:192.168.5.200,密码:password 33 | -------------------------------------------------------------------------------- /back/create-release.yml: -------------------------------------------------------------------------------- 1 | #================================================= 2 | # https://github.com/P3TERX/Actions-OpenWrt 3 | # Description: Build OpenWrt using GitHub Actions 4 | # Lisence: MIT 5 | # Author: P3TERX 6 | # Blog: https://p3terx.com 7 | #================================================= 8 | 9 | name: Create release 10 | 11 | on: 12 | schedule: 13 | - cron: 5 6 * * 5 14 | # watch: 15 | # types: started 16 | 17 | jobs: 18 | release: 19 | runs-on: ubuntu-latest 20 | 21 | steps: 22 | 23 | - name: Generate tag 24 | run: | 25 | echo ::set-env name=RELEASE_TAG::"$(TZ=UTC-8 date +"%Y.%m.%d")" 26 | 27 | - name: Create release 28 | uses: softprops/action-gh-release@v1 29 | env: 30 | GITHUB_TOKEN: ${{ secrets.RAC_TOKEN }} 31 | with: 32 | tag_name: ${{ env.RELEASE_TAG }} 33 | body: 🚀 Automated build | 自动编译 34 | -------------------------------------------------------------------------------- /back/diy.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #================================================= 3 | # Description: DIY script 4 | # Lisence: MIT 5 | # Author: leopard 6 | # Blog: https://p3terx.com 7 | #================================================= 8 | # Modify default IP@sed '1,3s/my/your/g 9 | sed -i 's/192.168.1.1/192.168.7.1/g' package/base-files/files/bin/config_generate 10 | 11 | # 删除原主题包 12 | # rm -rf package/lean/luci-theme-argon 13 | # rm -rf openwrt/package/lean/luci-theme-netgear 14 | 15 | # Modify the version number 16 | sed -i 's/OpenWrt/Leopard build $(date "+%Y.%m.%d") @ OpenWrt/g' package/lean/default-settings/files/zzz-default-settings 17 | 18 | # Modify default theme 19 | # sed -i 's/luci-theme-bootstrap/luci-theme-argon/g' feeds/luci/collections/luci/Makefile 20 | 21 | # 添加新的主题包 22 | # git clone https://github.com/jerrykuku/luci-theme-argon.git package/lean/luci-theme-argon 23 | # git clone https://github.com/sypopo/luci-theme-atmaterial.git package/lean/luci-theme-atmaterial 24 | git clone https://github.com/sypopo/luci-theme-argon-mc.git package/lean/luci-theme-argon-mc 25 | git clone https://github.com/Leo-Jo-My/luci-theme-opentomcat.git package/lean/luci-theme-opentomcat 26 | 27 | # 取消bootstrap为默认主题 28 | # sed -i '/set luci.main.mediaurlbase=\/luci-static\/bootstrap/d' feeds/luci/themes/luci-theme-bootstrap/root/etc/uci-defaults/30_luci-theme-bootstrap 29 | 30 | #增加koolddns 31 | # git clone https://github.com/xrouterservice/luci-app-koolddns.git openwrt/package/lean/luci-app-koolddns 32 | 33 | # Add kernel build user 34 | [ -z $(grep "CONFIG_KERNEL_BUILD_USER=" .config) ] && 35 | echo 'CONFIG_KERNEL_BUILD_USER="Leopard"' >>.config || 36 | sed -i 's@\(CONFIG_KERNEL_BUILD_USER=\).*@\1$"P3TERX"@' .config 37 | 38 | # Add kernel build domain 39 | [ -z $(grep "CONFIG_KERNEL_BUILD_DOMAIN=" .config) ] && 40 | echo 'CONFIG_KERNEL_BUILD_DOMAIN="GitHub Actions"' >>.config || 41 | sed -i 's@\(CONFIG_KERNEL_BUILD_DOMAIN=\).*@\1$"GitHub Actions"@' .config 42 | 43 | # 增加ssr 44 | # git clone https://github.com/kenzok8/openwrt-packages.git package/openwrt-packages 45 | git clone https://github.com/fw876/helloworld.git package/openwrt-packages/luci-app-ssr-plus 46 | -------------------------------------------------------------------------------- /back/jdy.config: -------------------------------------------------------------------------------- 1 | # 编译R619AC固件: 2 | CONFIG_TARGET_ipq40xx=y 3 | CONFIG_TARGET_ipq40xx_DEVICE_p2w_r619ac-128m=y 4 | CONFIG_TARGET_BOARD="ipq40xx" 5 | 6 | # 文件系统镜像等支持: 7 | # CONFIG_TARGET_ROOTFS_EXT4FS is not set 8 | CONFIG_TARGET_ROOTFS_SQUASHFS=y 9 | CONFIG_TARGET_SQUASHFS_BLOCK_SIZE=512 10 | CONFIG_TARGET_UBIFS_FREE_SPACE_FIXUP=y 11 | CONFIG_TARGET_UBIFS_JOURNAL_SIZE="" 12 | 13 | # 固件压缩: 14 | # CONFIG_TARGET_IMAGES_GZIP=y 15 | 16 | # IPv6支持: 17 | CONFIG_PACKAGE_dnsmasq_full_dhcpv6=y 18 | CONFIG_PACKAGE_ip6tables=y 19 | CONFIG_PACKAGE_ipv6helper=y 20 | 21 | # 常用LuCI插件选择: 22 | CONFIG_LIBCURL_NO_SMB="!" 23 | # CONFIG_PACKAGE_luci-app-samba is not set 24 | # CONFIG_PACKAGE_autosamba is not set 25 | CONFIG_PACKAGE_luci-app-accesscontrol=y 26 | CONFIG_PACKAGE_luci-app-ddns=y 27 | CONFIG_DEFAULT_ddns-scripts_aliyun=y 28 | CONFIG_DEFAULT_ddns-scripts_dnspod=y 29 | CONFIG_DEFAULT_luci-app-pppoe-server=y 30 | CONFIG_PACKAGE_luci-app-adbyby-plus=y 31 | CONFIG_PACKAGE_luci-app-arpbind=y 32 | CONFIG_PACKAGE_luci-app-autoreboot=y 33 | # CONFIG_PACKAGE_luci-app-baidupcs-web is not set 34 | CONFIG_PACKAGE_luci-app-cifsd=y 35 | CONFIG_PACKAGE_luci-app-cpufreq=y 36 | # CONFIG_PACKAGE_luci-app-dockerman is not set 37 | CONFIG_PACKAGE_luci-app-filetransfer=y 38 | CONFIG_PACKAGE_luci-app-firewall=y 39 | CONFIG_PACKAGE_luci-app-guest-wifi=y 40 | CONFIG_PACKAGE_luci-app-hd-idle=y 41 | CONFIG_PACKAGE_luci-app-ipsec-vpnd=y 42 | CONFIG_PACKAGE_luci-app-openvpn-server=y 43 | CONFIG_PACKAGE_luci-app-nps=y 44 | CONFIG_PACKAGE_luci-app-ramfree=y 45 | CONFIG_PACKAGE_luci-app-ssr-plus=y 46 | CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_V2ray_plugin=y 47 | CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_V2ray=y 48 | CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_Trojan=y 49 | CONFIG_PACKAGE_luci-app-unblockmusic=y 50 | CONFIG_PACKAGE_luci-app-syncdial=y 51 | CONFIG_PACKAGE_luci-app-ttyd=y 52 | CONFIG_PACKAGE_luci-app-upnp=y 53 | CONFIG_PACKAGE_luci-app-wol=y 54 | CONFIG_PACKAGE_luci-app-vlmcsd=y 55 | CONFIG_PACKAGE_luci-app-vsftpd=y 56 | # CONFIG_PACKAGE_luci-app-koolddns=y 57 | CONFIG_DEFAULT_luci-app-flowoffload=y 58 | CONFIG_DEFAULT_ppp-mod-pppoe=y 59 | CONFIG_PACKAGE_luci-app-nlbwmon=y 60 | # CONFIG_PACKAGE_luci-app-transmission is not set 61 | CONFIG_PACKAGE_luci-app-zerotier=y 62 | CONFIG_PACKAGE_openssh-sftp-server=y 63 | # CONFIG_PACKAGE_luci-app-qbittorrent is not set 64 | # CONFIG_PACKAGE_luci-app-openvpn is not set 65 | # CONFIG_DEFAULT_luci-app-sfe is not set 66 | # CONFIG_PACKAGE_luci-app-aria2 is not set 67 | # CONFIG_DEFAULT_luci-app-sqm is not set 68 | # CONFIG_PACKAGE_luci-app-nfs is not set 69 | # CONFIG_PACKAGE_luci-app-rp-pppoe-server is not set 70 | # CONFIG_PACKAGE_luci-app-familycloud is not set 71 | # CONFIG_PACKAGE_luci-app-frpc is not set 72 | # CONFIG_PACKAGE_luci-app-kodexplorer is not set 73 | # CONFIG_PACKAGE_luci-app-mwan3 is not set 74 | # CONFIG_PACKAGE_luci-app-mwan3helper is not set 75 | # CONFIG_PACKAGE_luci-app-noddos is not set 76 | # CONFIG_PACKAGE_luci-app-qos is not set 77 | # CONFIG_PACKAGE_luci-app-usb-printer is not set 78 | # CONFIG_PACKAGE_luci-app-v2ray-server is not set 79 | # CONFIG_PACKAGE_luci-app-verysync is not set 80 | # CONFIG_PACKAGE_luci-app-webadmin is not set 81 | # CONFIG_PACKAGE_luci-app-wireguard is not set 82 | # CONFIG_PACKAGE_luci-app-wrtbwmon is not set 83 | # CONFIG_PACKAGE_luci-app-xlnetacc is not set 84 | 85 | # LuCI主题: 86 | CONFIG_PACKAGE_luci-theme-opentomcat=y 87 | CONFIG_PACKAGE_luci-theme-netgear=y 88 | CONFIG_PACKAGE_luci-theme-argon=y 89 | # CONFIG_DEFAULT_luci-theme-bootstrap-mod is not set 90 | # CONFIG_DEFAULT_luci-theme-darkmatter is not set 91 | # CONFIG_PACKAGE_luci-theme-material is not set 92 | -------------------------------------------------------------------------------- /diy-part1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #============================================================= 3 | # https://github.com/P3TERX/Actions-OpenWrt 4 | # File name: diy-part1.sh 5 | # Description: OpenWrt DIY script part 1 (Before Update feeds) 6 | # Lisence: MIT 7 | # Author: P3TERX 8 | # Blog: https://p3terx.com 9 | #============================================================= 10 | # 增加https://github.com/kenzok8/openwrt-packages到更新源 11 | # src-git kenzo https://github.com/kenzok8/openwrt-packages 12 | 13 | # fw876/helloworld 14 | # sed -i 's/^#\(.*helloworld\)/\1/' feeds.conf.default 15 | # sed -i 's@coolsnowwolf/packages@P3TERX/packages@' feeds.conf.default 16 | 17 | #获取Lienol-xiaorouji-passwall 18 | # git clone https://github.com/xiaorouji/openwrt-package/lienol/ package/diy-packages/lienol 19 | # git clone https://github.com/xiaorouji/openwrt-package/tree/master/lienol/luci-app-passwall package/luci-app-passwall 20 | git clone https://github.com/kenzok8/openwrt-packages.git package/openwrt-packages 21 | git clone https://github.com/kenzok8/small.git package/small 22 | git clone https://github.com/open-mesh-mirror/batman-adv.git package/batman-adv 23 | 24 | # 增加ssr(上述kenzok8/openwrt-packages已包含) 25 | # git clone https://github.com/kenzok8/openwrt-packages.git package/openwrt-packages 26 | # git clone https://github.com/fw876/helloworld.git package/diy-packages/luci-app-ssr-plus 27 | 28 | # 增加luci-app-unblockneteasemusic,来源immortalwrt 29 | git clone https://github.com/immortalwrt/luci-app-unblockneteasemusic.git package/luci-app-unblockneteasemusic 30 | 31 | # CONFIG_PACKAGE_luci-app-filebrowser=y 32 | git clone https://github.com/immortalwrt/openwrt-filebrowser.git package/luci-app-filebrowser 33 | -------------------------------------------------------------------------------- /diy-part2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #============================================================ 3 | # https://github.com/P3TERX/Actions-OpenWrt 4 | # File name: diy-part2.sh 5 | # Description: OpenWrt DIY script part 2 (After Update feeds) 6 | # Lisence: MIT 7 | # Author: P3TERX 8 | # Blog: https://p3terx.com 9 | # sed '1,3s/my/your/g' 10 | # sed -i '93s/0xf60000/0x1fb0000/g' target/ 11 | # chmod -R 755 files 12 | 13 | #================================================= 14 | # Modify default IP 15 | # sed -i 's/15744/32448/g' 16 | sed -i 's/192.168.1.1/192.168.5.200/g' package/base-files/files/bin/config_generate 17 | 18 | # Modify hostname 19 | sed -i 's/OpenWrt/R619ac/g' package/base-files/files/bin/config_generate 20 | 21 | 22 | 23 | # 取消bootstrap为默认主题 24 | sed -i '/set luci.main.mediaurlbase=\/luci-static\/bootstrap/d' feeds/luci/themes/luci-theme-bootstrap/root/etc/uci-defaults/30_luci-theme-bootstrap 25 | 26 | # 删除原主题包 27 | rm -rf package/lean/luci-theme-argon 28 | # rm -rf openwrt/package/lean/luci-theme-netgear 29 | 30 | # 添加新的主题包 31 | # git clone https://github.com/jerrykuku/luci-theme-argon.git package/lean/luci-theme-argon 32 | # git clone https://github.com/sypopo/luci-theme-atmaterial.git package/lean/luci-theme-atmaterial 33 | # git clone https://github.com/sypopo/luci-theme-argon-mc.git package/lean/luci-theme-argon-mc 34 | git clone https://github.com/Leo-Jo-My/luci-theme-opentomcat.git package/lean/luci-theme-opentomcat 35 | git clone https://github.com/garypang13/luci-theme-edge.git package/lean/luci-theme-edge 36 | # 更新 37 | # ./scripts/feeds update -a && ./scripts/feeds install -a 38 | 39 | ########## 40 | # Modify the version number 41 | sed -i "s/OpenWrt /Leopard build $(TZ=UTC-8 date "+%Y.%m.%d") @ OpenWrt /g" package/lean/default-settings/files/zzz-default-settings 42 | 43 | # Modify default theme 44 | # sed -i 's/luci-theme-bootstrap/luci-theme-argon/g' feeds/luci/collections/luci/Makefile 45 | 46 | # Add kernel build user 47 | [ -z $(grep "CONFIG_KERNEL_BUILD_USER=" .config) ] && 48 | echo 'CONFIG_KERNEL_BUILD_USER="Leopard"' >>.config || 49 | sed -i 's@\(CONFIG_KERNEL_BUILD_USER=\).*@\1$"Leopard"@' .config 50 | 51 | # Add kernel build domain 52 | [ -z $(grep "CONFIG_KERNEL_BUILD_DOMAIN=" .config) ] && 53 | echo 'CONFIG_KERNEL_BUILD_DOMAIN="GitHub Actions"' >>.config || 54 | sed -i 's@\(CONFIG_KERNEL_BUILD_DOMAIN=\).*@\1$"GitHub Actions"@' .config 55 | 56 | 57 | # 删除lean里的百度文本(编译失败),增加百度PCS-web 58 | # rm -rf package/lean/baidupcs-web 59 | # git clone https://github.com/liuzhuoling2011/baidupcs-web.git package/lean/baidupcs-web 60 | -------------------------------------------------------------------------------- /r619ac.config: -------------------------------------------------------------------------------- 1 | # 编译R619AC固件: 2 | CONFIG_TARGET_ipq40xx=y 3 | CONFIG_TARGET_ipq40xx_generic=y 4 | CONFIG_TARGET_ipq40xx_DEVICE_p2w_r619ac-128m=y 5 | CONFIG_TARGET_DEVICE_ipq40xx_generic_DEVICE_p2w_r619ac=y 6 | CONFIG_HAS_SUBTARGETS=y 7 | CONFIG_HAS_DEVICES=y 8 | CONFIG_TARGET_BOARD="ipq40xx" 9 | CONFIG_TARGET_SUBTARGET="generic" 10 | CONFIG_TARGET_PROFILE="DEVICE_p2w_r619ac-128m" 11 | 12 | # 文件系统镜像等支持: 13 | # CONFIG_TARGET_ROOTFS_EXT4FS is not set 14 | # CONFIG_TARGET_ROOTFS_SQUASHFS=y 15 | # CONFIG_TARGET_SQUASHFS_BLOCK_SIZE=256 16 | # CONFIG_TARGET_UBIFS_FREE_SPACE_FIXUP=y 17 | # CONFIG_TARGET_UBIFS_JOURNAL_SIZE="" 18 | 19 | # 固件压缩: 20 | CONFIG_TARGET_IMAGES_GZIP=y 21 | 22 | # IPv6支持: 23 | CONFIG_PACKAGE_dnsmasq_full_dhcpv6=y 24 | CONFIG_PACKAGE_ip6tables=y 25 | CONFIG_PACKAGE_ipv6helper=y 26 | 27 | # 常用LuCI插件选择: 28 | CONFIG_LIBCURL_NO_SMB="!" 29 | # CONFIG_PACKAGE_luci-app-samba is not set 30 | # CONFIG_PACKAGE_autosamba is not set 31 | CONFIG_PACKAGE_luci-app-accesscontrol=y 32 | # CONFIG_PACKAGE_luci-app-adguardhome is not set 33 | CONFIG_PACKAGE_luci-app-ddns=y 34 | CONFIG_DEFAULT_ddns-scripts_aliyun=y 35 | CONFIG_DEFAULT_ddns-scripts_dnspod=y 36 | CONFIG_DEFAULT_luci-app-pppoe-server=y 37 | CONFIG_PACKAGE_luci-app-adbyby-plus=y 38 | CONFIG_PACKAGE_luci-app-arpbind=y 39 | CONFIG_PACKAGE_luci-app-autoreboot=y 40 | CONFIG_PACKAGE_luci-app-baidupcs-web=y 41 | CONFIG_PACKAGE_luci-app-cifsd=y 42 | CONFIG_PACKAGE_luci-app-cpufreq=y 43 | CONFIG_PACKAGE_luci-app-filetransfer=y 44 | CONFIG_PACKAGE_luci-app-firewall=y 45 | CONFIG_PACKAGE_luci-app-guest-wifi=y 46 | CONFIG_DEFAULT_ipq-wifi-p2w_r619ac=y 47 | CONFIG_PACKAGE_ipq-wifi-p2w_r619ac=y 48 | CONFIG_PACKAGE_luci-app-hd-idle=y 49 | # CONFIG_PACKAGE_luci-app-ipsec-vpnd is not set 50 | CONFIG_PACKAGE_luci-app-openvpn=y 51 | CONFIG_PACKAGE_luci-app-openvpn-server=y 52 | # CONFIG_PACKAGE_luci-app-softethervpn is not set 53 | CONFIG_PACKAGE_luci-app-nps=y 54 | CONFIG_PACKAGE_luci-app-ramfree=y 55 | CONFIG_PACKAGE_luci-app-ssr-plus=y 56 | CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_V2ray_plugin=y 57 | CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_V2ray=y 58 | CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_Trojan=y 59 | CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_Kcptun=y 60 | CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_Xray=y 61 | CONFIG_PACKAGE_luci-app-syncdial=y 62 | CONFIG_PACKAGE_luci-app-ttyd=y 63 | # CONFIG_PACKAGE_luci-app-unblockmusic is not set 64 | CONFIG_PACKAGE_luci-app-unblockneteasemusic=y 65 | CONFIG_PACKAGE_luci-app-upnp=y 66 | CONFIG_PACKAGE_luci-app-wol=y 67 | CONFIG_PACKAGE_luci-app-vlmcsd=y 68 | CONFIG_PACKAGE_luci-app-vsftpd=y 69 | CONFIG_DEFAULT_luci-app-sfe=y 70 | CONFIG_PACKAGE_luci-app-nlbwmon=y 71 | CONFIG_PACKAGE_luci-app-zerotier=y 72 | CONFIG_DEFAULT_ppp-mod-pppoe=y 73 | # CONFIG_PACKAGE_openssh-sftp-server is not set 74 | CONFIG_PACKAGE_luci-app-passwall=y 75 | CONFIG_PACKAGE_luci-app-passwall_INCLUDE_Brook=y 76 | CONFIG_PACKAGE_luci-app-passwall_INCLUDE_ChinaDNS_NG=y 77 | CONFIG_PACKAGE_luci-app-passwall_INCLUDE_Haproxy=y 78 | CONFIG_PACKAGE_luci-app-passwall_INCLUDE_Hysteria=y 79 | CONFIG_PACKAGE_luci-app-passwall_INCLUDE_Kcptun=y 80 | CONFIG_PACKAGE_luci-app-passwall_INCLUDE_NaiveProxy=n 81 | CONFIG_PACKAGE_luci-app-passwall_INCLUDE_PDNSD=y 82 | CONFIG_PACKAGE_luci-app-passwall_INCLUDE_Simple_Obfs=y 83 | CONFIG_PACKAGE_luci-app-passwall_INCLUDE_Trojan_GO=y 84 | CONFIG_PACKAGE_luci-app-passwall_INCLUDE_Trojan_Plus=y 85 | CONFIG_PACKAGE_luci-app-passwall_INCLUDE_V2ray=y 86 | CONFIG_PACKAGE_luci-app-passwall_INCLUDE_V2ray_Plugin=y 87 | CONFIG_PACKAGE_luci-app-passwall_INCLUDE_Xray=y 88 | # CONFIG_PACKAGE_luci-app-transmission is not set 89 | # CONFIG_PACKAGE_luci-app-dockerman is not set 90 | CONFIG_PACKAGE_luci-app-familycloud=y 91 | CONFIG_PACKAGE_luci-app-openclash=y 92 | CONFIG_PACKAGE_luci-app-easymesh=y 93 | # CONFIG_DEFAULT_luci-app-flowoffload is not set 94 | # CONFIG_PACKAGE_luci-app-aria2 is not set 95 | # CONFIG_DEFAULT_luci-app-sqm is not set 96 | # CONFIG_PACKAGE_luci-app-nfs is not set 97 | # CONFIG_PACKAGE_luci-app-rp-pppoe-server is not set 98 | CONFIG_PACKAGE_luci-app-frpc=y 99 | CONFIG_PACKAGE_luci-app-frps=y 100 | # CONFIG_PACKAGE_luci-app-kodexplorer is not set 101 | # CONFIG_PACKAGE_luci-app-mwan3 is not set 102 | # CONFIG_PACKAGE_luci-app-mwan3helper is not set 103 | # CONFIG_PACKAGE_luci-app-noddos is not set 104 | # CONFIG_PACKAGE_luci-app-qbittorrent is not set 105 | # CONFIG_PACKAGE_luci-app-qos is not set 106 | CONFIG_PACKAGE_luci-app-usb-printer=y 107 | # CONFIG_PACKAGE_luci-app-v2ray-server is not set 108 | # CONFIG_PACKAGE_luci-app-verysync is not set 109 | # CONFIG_PACKAGE_luci-app-webadmin is not set 110 | # CONFIG_PACKAGE_luci-app-wireguard is not set 111 | # CONFIG_PACKAGE_luci-app-wrtbwmon is not set 112 | # CONFIG_PACKAGE_luci-app-xlnetacc is not set 113 | CONFIG_PACKAGE_luci-app-filebrowser=y 114 | 115 | # LuCI主题: 116 | CONFIG_PACKAGE_luci-theme-opentomcat=y 117 | CONFIG_PACKAGE_luci-theme-netgear=y 118 | CONFIG_PACKAGE_luci-theme-argon=y 119 | # CONFIG_DEFAULT_luci-theme-bootstrap-mod is not set 120 | # CONFIG_DEFAULT_luci-theme-darkmatter is not set 121 | # CONFIG_PACKAGE_luci-theme-material is not set 122 | --------------------------------------------------------------------------------