mirror of
https://github.com/hugoyue/Build-OpenWrt.git
synced 2026-04-10 14:07:39 +08:00
1st
This commit is contained in:
190
.github/workflows/build-hc5962.yml
vendored
Executable file
190
.github/workflows/build-hc5962.yml
vendored
Executable file
@@ -0,0 +1,190 @@
|
||||
#
|
||||
# Copyright (c) 2019-2020 P3TERX <https://p3terx.com>
|
||||
#
|
||||
# This is free software, licensed under the MIT License.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
# https://github.com/P3TERX/Actions-OpenWrt
|
||||
# Description: Build OpenWrt using GitHub Actions
|
||||
#
|
||||
|
||||
name: Build OpenWrt
|
||||
|
||||
on:
|
||||
repository_dispatch:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
ssh:
|
||||
description: 'SSH connection to Actions'
|
||||
required: false
|
||||
default: 'false'
|
||||
|
||||
env:
|
||||
REPO_URL: https://github.com/coolsnowwolf/openwrt
|
||||
REPO_BRANCH: lede-17.01
|
||||
FEEDS_CONF: feeds.conf.default
|
||||
CONFIG_FILE: devices/hc5962.config
|
||||
DIY_P1_SH: devices/hc5962/diy-part1.sh
|
||||
DIY_P2_SH: devices/hc5962/diy-part2.sh
|
||||
UPLOAD_BIN_DIR: false
|
||||
UPLOAD_FIRMWARE: true
|
||||
UPLOAD_COWTRANSFER: false
|
||||
UPLOAD_WETRANSFER: true
|
||||
UPLOAD_RELEASE: false
|
||||
TZ: Asia/Shanghai
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@main
|
||||
|
||||
- name: Initialization environment
|
||||
env:
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
run: |
|
||||
sudo rm -rf /etc/apt/sources.list.d/* /usr/share/dotnet /usr/local/lib/android /opt/ghc
|
||||
sudo -E apt-get -qq update
|
||||
sudo -E apt-get -qq install $(curl -fsSL git.io/depends-ubuntu-2004)
|
||||
sudo -E apt-get -qq autoremove --purge
|
||||
sudo -E apt-get -qq clean
|
||||
sudo timedatectl set-timezone "$TZ"
|
||||
sudo mkdir -p /workdir
|
||||
sudo chown $USER:$GROUPS /workdir
|
||||
|
||||
- name: Clone source code
|
||||
working-directory: /workdir
|
||||
run: |
|
||||
df -hT $PWD
|
||||
git clone $REPO_URL -b $REPO_BRANCH openwrt
|
||||
ln -sf /workdir/openwrt $GITHUB_WORKSPACE/openwrt
|
||||
|
||||
- name: Load custom feeds
|
||||
run: |
|
||||
[ -e $FEEDS_CONF ] && mv $FEEDS_CONF openwrt/feeds.conf.default
|
||||
chmod +x $DIY_P1_SH
|
||||
cd openwrt
|
||||
$GITHUB_WORKSPACE/$DIY_P1_SH
|
||||
|
||||
- name: Update feeds
|
||||
run: cd openwrt && ./scripts/feeds update -a
|
||||
|
||||
- name: Install feeds
|
||||
run: cd openwrt && ./scripts/feeds install -a
|
||||
|
||||
- name: Load custom configuration
|
||||
run: |
|
||||
[ -e files ] && mv files openwrt/files
|
||||
[ -e $CONFIG_FILE ] && mv $CONFIG_FILE openwrt/.config
|
||||
chmod +x $DIY_P2_SH
|
||||
cd openwrt
|
||||
$GITHUB_WORKSPACE/$DIY_P2_SH
|
||||
|
||||
- name: SSH connection to Actions
|
||||
uses: P3TERX/ssh2actions@v1.0.0
|
||||
if: (github.event.inputs.ssh == 'true' && github.event.inputs.ssh != 'false') || contains(github.event.action, 'ssh')
|
||||
env:
|
||||
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
|
||||
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
||||
|
||||
- name: Download package
|
||||
id: package
|
||||
run: |
|
||||
cd openwrt
|
||||
make defconfig
|
||||
make download -j8
|
||||
find dl -size -1024c -exec ls -l {} \;
|
||||
find dl -size -1024c -exec rm -f {} \;
|
||||
|
||||
- name: Compile the firmware
|
||||
id: compile
|
||||
run: |
|
||||
cd openwrt
|
||||
echo -e "$(nproc) thread compile"
|
||||
make -j$(nproc) || make -j1 || make -j1 V=s
|
||||
echo "::set-output name=status::success"
|
||||
grep '^CONFIG_TARGET.*DEVICE.*=y' .config | sed -r 's/.*DEVICE_(.*)=y/\1/' > DEVICE_NAME
|
||||
[ -s DEVICE_NAME ] && echo "DEVICE_NAME=_$(cat DEVICE_NAME)" >> $GITHUB_ENV
|
||||
echo "FILE_DATE=_$(date +"%Y%m%d%H%M")" >> $GITHUB_ENV
|
||||
|
||||
- name: Check space usage
|
||||
if: (!cancelled())
|
||||
run: df -hT
|
||||
|
||||
- name: Upload bin directory
|
||||
uses: actions/upload-artifact@main
|
||||
if: steps.compile.outputs.status == 'success' && env.UPLOAD_BIN_DIR == 'true'
|
||||
with:
|
||||
name: OpenWrt_bin${{ env.DEVICE_NAME }}${{ env.FILE_DATE }}
|
||||
path: openwrt/bin
|
||||
|
||||
- name: Organize files
|
||||
id: organize
|
||||
if: env.UPLOAD_FIRMWARE == 'true' && !cancelled()
|
||||
run: |
|
||||
cd openwrt/bin/targets/*/*
|
||||
rm -rf packages
|
||||
echo "FIRMWARE=$PWD" >> $GITHUB_ENV
|
||||
echo "::set-output name=status::success"
|
||||
|
||||
- name: Upload firmware directory
|
||||
uses: actions/upload-artifact@main
|
||||
if: steps.organize.outputs.status == 'success' && !cancelled()
|
||||
with:
|
||||
name: OpenWrt_firmware${{ env.DEVICE_NAME }}${{ env.FILE_DATE }}
|
||||
path: ${{ env.FIRMWARE }}
|
||||
|
||||
- name: Upload firmware to cowtransfer
|
||||
id: cowtransfer
|
||||
if: steps.organize.outputs.status == 'success' && env.UPLOAD_COWTRANSFER == 'true' && !cancelled()
|
||||
run: |
|
||||
curl -fsSL git.io/file-transfer | sh
|
||||
./transfer cow --block 2621440 -s -p 64 --no-progress ${FIRMWARE} 2>&1 | tee cowtransfer.log
|
||||
echo "::warning file=cowtransfer.com::$(cat cowtransfer.log | grep https)"
|
||||
echo "::set-output name=url::$(cat cowtransfer.log | grep https | cut -f3 -d" ")"
|
||||
|
||||
- name: Upload firmware to WeTransfer
|
||||
id: wetransfer
|
||||
if: steps.organize.outputs.status == 'success' && env.UPLOAD_WETRANSFER == 'true' && !cancelled()
|
||||
run: |
|
||||
curl -fsSL git.io/file-transfer | sh
|
||||
./transfer wet -s -p 16 --no-progress ${FIRMWARE} 2>&1 | tee wetransfer.log
|
||||
echo "::warning file=wetransfer.com::$(cat wetransfer.log | grep https)"
|
||||
echo "::set-output name=url::$(cat wetransfer.log | grep https | cut -f3 -d" ")"
|
||||
|
||||
- name: Generate release tag
|
||||
id: tag
|
||||
if: env.UPLOAD_RELEASE == 'true' && !cancelled()
|
||||
run: |
|
||||
echo "::set-output name=release_tag::$(date +"%Y.%m.%d-%H%M")"
|
||||
touch release.txt
|
||||
[ $UPLOAD_COWTRANSFER = true ] && echo "🔗 [Cowtransfer](${{ steps.cowtransfer.outputs.url }})" >> release.txt
|
||||
[ $UPLOAD_WETRANSFER = true ] && echo "🔗 [WeTransfer](${{ steps.wetransfer.outputs.url }})" >> release.txt
|
||||
echo "::set-output name=status::success"
|
||||
|
||||
- name: Upload firmware to release
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: steps.tag.outputs.status == 'success' && !cancelled()
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ steps.tag.outputs.release_tag }}
|
||||
body_path: release.txt
|
||||
files: ${{ env.FIRMWARE }}/*
|
||||
|
||||
- name: Delete workflow runs
|
||||
uses: GitRML/delete-workflow-runs@main
|
||||
with:
|
||||
retain_days: 1
|
||||
keep_minimum_runs: 3
|
||||
|
||||
- name: Remove old Releases
|
||||
uses: dev-drprasad/delete-older-releases@v0.1.0
|
||||
if: env.UPLOAD_RELEASE == 'true' && !cancelled()
|
||||
with:
|
||||
keep_latest: 3
|
||||
delete_tags: true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
190
.github/workflows/build-x86_64.yml
vendored
Executable file
190
.github/workflows/build-x86_64.yml
vendored
Executable file
@@ -0,0 +1,190 @@
|
||||
#
|
||||
# Copyright (c) 2019-2020 P3TERX <https://p3terx.com>
|
||||
#
|
||||
# This is free software, licensed under the MIT License.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
# https://github.com/P3TERX/Actions-OpenWrt
|
||||
# Description: Build OpenWrt using GitHub Actions
|
||||
#
|
||||
|
||||
name: Build OpenWrt
|
||||
|
||||
on:
|
||||
repository_dispatch:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
ssh:
|
||||
description: 'SSH connection to Actions'
|
||||
required: false
|
||||
default: 'false'
|
||||
|
||||
env:
|
||||
REPO_URL: https://github.com/openwrt/openwrt.git
|
||||
REPO_BRANCH: openwrt-21.02
|
||||
FEEDS_CONF: feeds.conf.default
|
||||
CONFIG_FILE: devices/x86_64.config
|
||||
DIY_P1_SH: devices/x86_64/diy-part1.sh
|
||||
DIY_P2_SH: devices/x86_64/diy-part2.sh
|
||||
UPLOAD_BIN_DIR: false
|
||||
UPLOAD_FIRMWARE: true
|
||||
UPLOAD_COWTRANSFER: false
|
||||
UPLOAD_WETRANSFER: true
|
||||
UPLOAD_RELEASE: false
|
||||
TZ: Asia/Shanghai
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@main
|
||||
|
||||
- name: Initialization environment
|
||||
env:
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
run: |
|
||||
sudo rm -rf /etc/apt/sources.list.d/* /usr/share/dotnet /usr/local/lib/android /opt/ghc
|
||||
sudo -E apt-get -qq update
|
||||
sudo -E apt-get -qq install $(curl -fsSL git.io/depends-ubuntu-2004)
|
||||
sudo -E apt-get -qq autoremove --purge
|
||||
sudo -E apt-get -qq clean
|
||||
sudo timedatectl set-timezone "$TZ"
|
||||
sudo mkdir -p /workdir
|
||||
sudo chown $USER:$GROUPS /workdir
|
||||
|
||||
- name: Clone source code
|
||||
working-directory: /workdir
|
||||
run: |
|
||||
df -hT $PWD
|
||||
git clone $REPO_URL -b $REPO_BRANCH openwrt
|
||||
ln -sf /workdir/openwrt $GITHUB_WORKSPACE/openwrt
|
||||
|
||||
- name: Load custom feeds
|
||||
run: |
|
||||
[ -e $FEEDS_CONF ] && mv $FEEDS_CONF openwrt/feeds.conf.default
|
||||
chmod +x $DIY_P1_SH
|
||||
cd openwrt
|
||||
$GITHUB_WORKSPACE/$DIY_P1_SH
|
||||
|
||||
- name: Update feeds
|
||||
run: cd openwrt && ./scripts/feeds update -a
|
||||
|
||||
- name: Install feeds
|
||||
run: cd openwrt && ./scripts/feeds install -a
|
||||
|
||||
- name: Load custom configuration
|
||||
run: |
|
||||
[ -e files ] && mv files openwrt/files
|
||||
[ -e $CONFIG_FILE ] && mv $CONFIG_FILE openwrt/.config
|
||||
chmod +x $DIY_P2_SH
|
||||
cd openwrt
|
||||
$GITHUB_WORKSPACE/$DIY_P2_SH
|
||||
|
||||
- name: SSH connection to Actions
|
||||
uses: P3TERX/ssh2actions@v1.0.0
|
||||
if: (github.event.inputs.ssh == 'true' && github.event.inputs.ssh != 'false') || contains(github.event.action, 'ssh')
|
||||
env:
|
||||
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
|
||||
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
||||
|
||||
- name: Download package
|
||||
id: package
|
||||
run: |
|
||||
cd openwrt
|
||||
make defconfig
|
||||
make download -j8
|
||||
find dl -size -1024c -exec ls -l {} \;
|
||||
find dl -size -1024c -exec rm -f {} \;
|
||||
|
||||
- name: Compile the firmware
|
||||
id: compile
|
||||
run: |
|
||||
cd openwrt
|
||||
echo -e "$(nproc) thread compile"
|
||||
make -j$(nproc) || make -j1 || make -j1 V=s
|
||||
echo "::set-output name=status::success"
|
||||
grep '^CONFIG_TARGET.*DEVICE.*=y' .config | sed -r 's/.*DEVICE_(.*)=y/\1/' > DEVICE_NAME
|
||||
[ -s DEVICE_NAME ] && echo "DEVICE_NAME=_$(cat DEVICE_NAME)" >> $GITHUB_ENV
|
||||
echo "FILE_DATE=_$(date +"%Y%m%d%H%M")" >> $GITHUB_ENV
|
||||
|
||||
- name: Check space usage
|
||||
if: (!cancelled())
|
||||
run: df -hT
|
||||
|
||||
- name: Upload bin directory
|
||||
uses: actions/upload-artifact@main
|
||||
if: steps.compile.outputs.status == 'success' && env.UPLOAD_BIN_DIR == 'true'
|
||||
with:
|
||||
name: OpenWrt_bin${{ env.DEVICE_NAME }}${{ env.FILE_DATE }}
|
||||
path: openwrt/bin
|
||||
|
||||
- name: Organize files
|
||||
id: organize
|
||||
if: env.UPLOAD_FIRMWARE == 'true' && !cancelled()
|
||||
run: |
|
||||
cd openwrt/bin/targets/*/*
|
||||
rm -rf packages
|
||||
echo "FIRMWARE=$PWD" >> $GITHUB_ENV
|
||||
echo "::set-output name=status::success"
|
||||
|
||||
- name: Upload firmware directory
|
||||
uses: actions/upload-artifact@main
|
||||
if: steps.organize.outputs.status == 'success' && !cancelled()
|
||||
with:
|
||||
name: OpenWrt_firmware${{ env.DEVICE_NAME }}${{ env.FILE_DATE }}
|
||||
path: ${{ env.FIRMWARE }}
|
||||
|
||||
- name: Upload firmware to cowtransfer
|
||||
id: cowtransfer
|
||||
if: steps.organize.outputs.status == 'success' && env.UPLOAD_COWTRANSFER == 'true' && !cancelled()
|
||||
run: |
|
||||
curl -fsSL git.io/file-transfer | sh
|
||||
./transfer cow --block 2621440 -s -p 64 --no-progress ${FIRMWARE} 2>&1 | tee cowtransfer.log
|
||||
echo "::warning file=cowtransfer.com::$(cat cowtransfer.log | grep https)"
|
||||
echo "::set-output name=url::$(cat cowtransfer.log | grep https | cut -f3 -d" ")"
|
||||
|
||||
- name: Upload firmware to WeTransfer
|
||||
id: wetransfer
|
||||
if: steps.organize.outputs.status == 'success' && env.UPLOAD_WETRANSFER == 'true' && !cancelled()
|
||||
run: |
|
||||
curl -fsSL git.io/file-transfer | sh
|
||||
./transfer wet -s -p 16 --no-progress ${FIRMWARE} 2>&1 | tee wetransfer.log
|
||||
echo "::warning file=wetransfer.com::$(cat wetransfer.log | grep https)"
|
||||
echo "::set-output name=url::$(cat wetransfer.log | grep https | cut -f3 -d" ")"
|
||||
|
||||
- name: Generate release tag
|
||||
id: tag
|
||||
if: env.UPLOAD_RELEASE == 'true' && !cancelled()
|
||||
run: |
|
||||
echo "::set-output name=release_tag::$(date +"%Y.%m.%d-%H%M")"
|
||||
touch release.txt
|
||||
[ $UPLOAD_COWTRANSFER = true ] && echo "🔗 [Cowtransfer](${{ steps.cowtransfer.outputs.url }})" >> release.txt
|
||||
[ $UPLOAD_WETRANSFER = true ] && echo "🔗 [WeTransfer](${{ steps.wetransfer.outputs.url }})" >> release.txt
|
||||
echo "::set-output name=status::success"
|
||||
|
||||
- name: Upload firmware to release
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: steps.tag.outputs.status == 'success' && !cancelled()
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ steps.tag.outputs.release_tag }}
|
||||
body_path: release.txt
|
||||
files: ${{ env.FIRMWARE }}/*
|
||||
|
||||
- name: Delete workflow runs
|
||||
uses: GitRML/delete-workflow-runs@main
|
||||
with:
|
||||
retain_days: 1
|
||||
keep_minimum_runs: 3
|
||||
|
||||
- name: Remove old Releases
|
||||
uses: dev-drprasad/delete-older-releases@v0.1.0
|
||||
if: env.UPLOAD_RELEASE == 'true' && !cancelled()
|
||||
with:
|
||||
keep_latest: 3
|
||||
delete_tags: true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
21
LICENSE
Executable file
21
LICENSE
Executable file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2019-2020 P3TERX <https://p3terx.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
16
README.md
Executable file
16
README.md
Executable file
@@ -0,0 +1,16 @@
|
||||
# Build-OpenWrt
|
||||
|
||||
Auto Build OpenWrt for x86_64 / HC5962(OpenWrt 固件云编译)
|
||||
|
||||
## 介绍
|
||||
|
||||
- X86_64 固件大小 832MB (squashfs+EXT4)
|
||||
- 默认主题为 Argon ,除了对PassWall、Clash、AdGuardHome(广告拦截)、Appfilter(应用过滤)、ZeroTier 等热门插件的支持外,集成了常用的命令行工具如socat\iper3\curl\nano等便于自身维护。
|
||||
- 默认 Lan IP: `192.168.199.1 ` 账号/密码 `root / password`
|
||||
- 每月一号自动编译一次新固件,编译成功后Telegram通知(需要在`setting->secrets`添加相应的值)
|
||||
|
||||
---
|
||||
|
||||
## 版权
|
||||
|
||||
[MIT](https://github.com/P3TERX/Actions-OpenWrt/blob/main/LICENSE) © [**P3TERX**](https://p3terx.com)
|
||||
BIN
devices/.DS_Store
vendored
Normal file
BIN
devices/.DS_Store
vendored
Normal file
Binary file not shown.
21
devices/hc5962/diy-part1.sh
Executable file
21
devices/hc5962/diy-part1.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Copyright (c) 2019-2020 P3TERX <https://p3terx.com>
|
||||
#
|
||||
# This is free software, licensed under the MIT License.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
# https://github.com/P3TERX/Actions-OpenWrt
|
||||
# File name: diy-part1.sh
|
||||
# Description: OpenWrt DIY script part 1 (Before Update feeds)
|
||||
#
|
||||
|
||||
# Uncomment a feed source
|
||||
#sed -i 's/^#\(.*helloworld\)/\1/' feeds.conf.default
|
||||
|
||||
# Add a feed source
|
||||
|
||||
cat >> feeds.conf.default <<EOF
|
||||
src-git kenzo https://github.com/kenzok8/openwrt-packages
|
||||
src-git passwall https://github.com/xiaorouji/openwrt-passwall
|
||||
EOF
|
||||
24
devices/hc5962/diy-part2.sh
Executable file
24
devices/hc5962/diy-part2.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Copyright (c) 2019-2020 P3TERX <https://p3terx.com>
|
||||
#
|
||||
# This is free software, licensed under the MIT License.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
# https://github.com/P3TERX/Actions-OpenWrt
|
||||
# File name: diy-part2.sh
|
||||
# Description: OpenWrt DIY script part 2 (After Update feeds)
|
||||
#
|
||||
|
||||
# Modify default IP
|
||||
sed -i 's/192.168.1.1/192.168.199.1/g' package/base-files/files/bin/config_generate
|
||||
|
||||
# Modify default theme
|
||||
rm -rf package/lean/luci-theme-argon
|
||||
git clone -b 18.06 https://github.com/jerrykuku/luci-theme-argon.git package/lean/luci-theme-argon
|
||||
sed -i 's/luci-theme-bootstrap/luci-theme-argon/' feeds/luci/collections/luci/Makefile
|
||||
|
||||
# Add Packages
|
||||
git clone https://github.com/destan19/OpenAppFilter package/OpenAppFilter
|
||||
git clone https://github.com/MapesxGM/luci-app-tencentddns package/luci-app-tencentddns
|
||||
git clone https://github.com/jerrykuku/luci-app-argon-config package/luci-app-argon-config
|
||||
194
devices/hc5962/hc5962.config
Normal file
194
devices/hc5962/hc5962.config
Normal file
@@ -0,0 +1,194 @@
|
||||
CONFIG_TARGET_ramips=y
|
||||
CONFIG_TARGET_ramips_mt7621=y
|
||||
CONFIG_TARGET_ramips_mt7621_DEVICE_hiwifi_hc5962=y
|
||||
CONFIG_LIBCURL_COOKIES=y
|
||||
CONFIG_LIBCURL_FILE=y
|
||||
CONFIG_LIBCURL_FTP=y
|
||||
CONFIG_LIBCURL_HTTP=y
|
||||
CONFIG_LIBCURL_NO_SMB="!"
|
||||
CONFIG_LIBCURL_OPENSSL=y
|
||||
CONFIG_LIBCURL_PROXY=y
|
||||
CONFIG_MTK_APCLI_SUPPORT=y
|
||||
CONFIG_MTK_ATE_SUPPORT=y
|
||||
CONFIG_MTK_BACKGROUND_SCAN_SUPPORT=y
|
||||
CONFIG_MTK_BAND_STEERING=y
|
||||
CONFIG_MTK_BRCM_256QAM_SUPPORT=y
|
||||
CONFIG_MTK_CHIP_MT7615E=y
|
||||
CONFIG_MTK_DBDC_MODE=y
|
||||
CONFIG_MTK_DOT11W_PMF_SUPPORT=y
|
||||
CONFIG_MTK_DOT11_N_SUPPORT=y
|
||||
CONFIG_MTK_DOT11_VHT_AC=y
|
||||
CONFIG_MTK_FIRST_IF_EEPROM_FLASH=y
|
||||
CONFIG_MTK_FIRST_IF_EPAELNA=y
|
||||
CONFIG_MTK_FIRST_IF_MT7615E=y
|
||||
CONFIG_MTK_GREENAP_SUPPORT=y
|
||||
CONFIG_MTK_G_BAND_256QAM_SUPPORT=y
|
||||
CONFIG_MTK_HDR_TRANS_RX_SUPPORT=y
|
||||
CONFIG_MTK_HDR_TRANS_TX_SUPPORT=y
|
||||
CONFIG_MTK_ICAP_SUPPORT=y
|
||||
CONFIG_MTK_IGMP_SNOOP_SUPPORT=y
|
||||
CONFIG_MTK_MAC_REPEATER_SUPPORT=y
|
||||
CONFIG_MTK_MBSS_SUPPORT=y
|
||||
CONFIG_MTK_MCAST_RATE_SPECIFIC=y
|
||||
CONFIG_MTK_MT_AP_SUPPORT=y
|
||||
CONFIG_MTK_MT_DFS_SUPPORT=y
|
||||
CONFIG_MTK_MT_MAC=y
|
||||
CONFIG_MTK_MT_WIFI=y
|
||||
CONFIG_MTK_MT_WIFI_PATH="mt_wifi"
|
||||
CONFIG_MTK_MULTI_PROFILE_SUPPORT=y
|
||||
CONFIG_MTK_MUMIMO_SUPPORT=y
|
||||
CONFIG_MTK_MU_RA_SUPPORT=y
|
||||
CONFIG_MTK_PCIE_ASPM_DYM_CTRL_SUPPORT=y
|
||||
CONFIG_MTK_PRE_CAL_TRX_SET1_SUPPORT=y
|
||||
CONFIG_MTK_PRE_CAL_TRX_SET2_SUPPORT=y
|
||||
CONFIG_MTK_RED_SUPPORT=y
|
||||
CONFIG_MTK_RLM_CAL_CACHE_SUPPORT=y
|
||||
CONFIG_MTK_RTMP_FLASH_SUPPORT=y
|
||||
CONFIG_MTK_RT_FIRST_CARD=7615
|
||||
CONFIG_MTK_RT_FIRST_CARD_EEPROM="flash"
|
||||
CONFIG_MTK_RT_FIRST_IF_RF_OFFSET=0xc0000
|
||||
CONFIG_MTK_SECOND_IF_NONE=y
|
||||
CONFIG_MTK_SMART_CARRIER_SENSE_SUPPORT=y
|
||||
CONFIG_MTK_SPECTRUM_SUPPORT=y
|
||||
CONFIG_MTK_SUPPORT_OPENWRT=y
|
||||
CONFIG_MTK_TCP_RACK_SUPPORT=y
|
||||
CONFIG_MTK_THIRD_IF_NONE=y
|
||||
CONFIG_MTK_TPC_SUPPORT=y
|
||||
CONFIG_MTK_TXBF_SUPPORT=y
|
||||
CONFIG_MTK_UAPSD=y
|
||||
CONFIG_MTK_VHT_TXBF_2G_EPIGRAM_IE_SUPPORT=y
|
||||
CONFIG_MTK_VOW_SUPPORT=y
|
||||
CONFIG_MTK_WDS_SUPPORT=y
|
||||
CONFIG_MTK_WIFI_BASIC_FUNC=y
|
||||
CONFIG_MTK_WIFI_DRIVER=y
|
||||
CONFIG_MTK_WIFI_MODE_AP=y
|
||||
CONFIG_MTK_WIFI_MT_MAC=y
|
||||
CONFIG_MTK_WSC_INCLUDED=y
|
||||
CONFIG_MTK_WSC_V2_SUPPORT=y
|
||||
CONFIG_PACKAGE_6in4=y
|
||||
CONFIG_PACKAGE_appfilter=y
|
||||
CONFIG_PACKAGE_bash=y
|
||||
CONFIG_PACKAGE_bind-dig=y
|
||||
CONFIG_PACKAGE_bind-libs=y
|
||||
CONFIG_PACKAGE_boost=y
|
||||
CONFIG_PACKAGE_boost-program_options=y
|
||||
CONFIG_PACKAGE_boost-system=y
|
||||
CONFIG_PACKAGE_ca-bundle=y
|
||||
CONFIG_PACKAGE_chinadns-ng=y
|
||||
CONFIG_PACKAGE_coreutils-nohup=y
|
||||
CONFIG_PACKAGE_curl=y
|
||||
CONFIG_PACKAGE_ddns-scripts_cloudflare.com-v4=y
|
||||
CONFIG_PACKAGE_ip6tables=y
|
||||
CONFIG_PACKAGE_ipt2socks=y
|
||||
CONFIG_PACKAGE_iptables-mod-conntrack-extra=y
|
||||
CONFIG_PACKAGE_iptables-mod-ipopt=y
|
||||
CONFIG_PACKAGE_iptables-mod-iprange=y
|
||||
CONFIG_PACKAGE_iputils-arping=y
|
||||
CONFIG_PACKAGE_ipv6helper=y
|
||||
CONFIG_PACKAGE_jq=y
|
||||
CONFIG_PACKAGE_kmod-ifb=y
|
||||
CONFIG_PACKAGE_kmod-ipt-conntrack-extra=y
|
||||
CONFIG_PACKAGE_kmod-ipt-ipopt=y
|
||||
CONFIG_PACKAGE_kmod-ipt-iprange=y
|
||||
CONFIG_PACKAGE_kmod-ipt-nat6=y
|
||||
CONFIG_PACKAGE_kmod-iptunnel=y
|
||||
CONFIG_PACKAGE_kmod-iptunnel4=y
|
||||
CONFIG_PACKAGE_kmod-mt_wifi=y
|
||||
CONFIG_PACKAGE_kmod-nf-nat6=y
|
||||
CONFIG_PACKAGE_kmod-oaf=y
|
||||
CONFIG_PACKAGE_kmod-sched-cake-oot=y
|
||||
CONFIG_PACKAGE_kmod-sched-cake-virtual=y
|
||||
CONFIG_PACKAGE_kmod-sched-core=y
|
||||
CONFIG_PACKAGE_kmod-sit=y
|
||||
CONFIG_PACKAGE_kmod-tun=y
|
||||
CONFIG_PACKAGE_libcurl=y
|
||||
CONFIG_PACKAGE_libmbedtls=y
|
||||
CONFIG_PACKAGE_libminiupnpc=y
|
||||
CONFIG_PACKAGE_libnatpmp=y
|
||||
CONFIG_PACKAGE_libncurses=y
|
||||
CONFIG_PACKAGE_libreadline=y
|
||||
CONFIG_PACKAGE_libstdcpp=y
|
||||
CONFIG_PACKAGE_libsysfs=y
|
||||
# CONFIG_PACKAGE_luci-app-adguardhome_INCLUDE_binary is not set
|
||||
CONFIG_PACKAGE_luci-app-aliddns=y
|
||||
CONFIG_PACKAGE_luci-app-argon-config=y
|
||||
# CONFIG_PACKAGE_luci-app-bypass_INCLUDE_ShadowsocksR_Libev_Client is not set
|
||||
# CONFIG_PACKAGE_luci-app-bypass_INCLUDE_ShadowsocksR_Libev_Server is not set
|
||||
# CONFIG_PACKAGE_luci-app-bypass_INCLUDE_Shadowsocks_Libev_Client is not set
|
||||
# CONFIG_PACKAGE_luci-app-bypass_INCLUDE_Shadowsocks_Libev_Server is not set
|
||||
# CONFIG_PACKAGE_luci-app-bypass_INCLUDE_Simple_obfs is not set
|
||||
# CONFIG_PACKAGE_luci-app-bypass_INCLUDE_Socks5_Proxy is not set
|
||||
# CONFIG_PACKAGE_luci-app-bypass_INCLUDE_Socks_Server is not set
|
||||
# CONFIG_PACKAGE_luci-app-bypass_INCLUDE_Trojan is not set
|
||||
# CONFIG_PACKAGE_luci-app-bypass_INCLUDE_Trojan-Go is not set
|
||||
# CONFIG_PACKAGE_luci-app-bypass_INCLUDE_Xray is not set
|
||||
CONFIG_PACKAGE_luci-app-eqos=y
|
||||
# CONFIG_PACKAGE_luci-app-flowoffload is not set
|
||||
CONFIG_PACKAGE_luci-app-mtwifi=y
|
||||
CONFIG_PACKAGE_luci-app-oaf=y
|
||||
CONFIG_PACKAGE_luci-app-passwall=y
|
||||
CONFIG_PACKAGE_luci-app-passwall_INCLUDE_V2ray=y
|
||||
CONFIG_PACKAGE_luci-app-passwall_INCLUDE_Xray=y
|
||||
CONFIG_PACKAGE_luci-app-pushbot=y
|
||||
CONFIG_PACKAGE_luci-app-sqm=y
|
||||
# CONFIG_PACKAGE_luci-app-ssr-plus is not set
|
||||
# CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_ShadowsocksR_Libev_Client is not set
|
||||
CONFIG_PACKAGE_luci-app-tencentddns=y
|
||||
# CONFIG_PACKAGE_luci-app-unblockmusic is not set
|
||||
# CONFIG_PACKAGE_luci-app-vsftpd is not set
|
||||
CONFIG_PACKAGE_luci-app-watchcat=y
|
||||
CONFIG_PACKAGE_luci-app-wrtbwmon=y
|
||||
CONFIG_PACKAGE_luci-app-zerotier=y
|
||||
CONFIG_PACKAGE_luci-compat=y
|
||||
CONFIG_PACKAGE_luci-i18n-aliddns-zh-cn=y
|
||||
CONFIG_PACKAGE_luci-i18n-argon-config-zh-cn=y
|
||||
CONFIG_PACKAGE_luci-i18n-eqos-zh-cn=y
|
||||
CONFIG_PACKAGE_luci-i18n-oaf-zh-cn=y
|
||||
CONFIG_PACKAGE_luci-i18n-passwall-zh-cn=y
|
||||
CONFIG_PACKAGE_luci-i18n-sqm-zh-cn=y
|
||||
CONFIG_PACKAGE_luci-i18n-watchcat-zh-cn=y
|
||||
CONFIG_PACKAGE_luci-i18n-wrtbwmon-zh-cn=y
|
||||
CONFIG_PACKAGE_luci-i18n-zerotier-zh-cn=y
|
||||
CONFIG_PACKAGE_luci-proto-ipv6=y
|
||||
CONFIG_PACKAGE_luci-theme-bootstrap=y
|
||||
CONFIG_PACKAGE_nano=y
|
||||
CONFIG_PACKAGE_odhcp6c=y
|
||||
CONFIG_PACKAGE_odhcp6c_ext_cer_id=0
|
||||
CONFIG_PACKAGE_odhcpd-ipv6only=y
|
||||
CONFIG_PACKAGE_odhcpd_ipv6only_ext_cer_id=0
|
||||
CONFIG_PACKAGE_shadowsocks-libev-ss-local=y
|
||||
CONFIG_PACKAGE_shadowsocks-libev-ss-redir=y
|
||||
# CONFIG_PACKAGE_shadowsocksr-libev-ssr-check is not set
|
||||
CONFIG_PACKAGE_simple-obfs=y
|
||||
CONFIG_PACKAGE_sqm-scripts=y
|
||||
CONFIG_PACKAGE_tc=y
|
||||
CONFIG_PACKAGE_terminfo=y
|
||||
CONFIG_PACKAGE_trojan-plus=y
|
||||
CONFIG_PACKAGE_unzip=y
|
||||
CONFIG_PACKAGE_v2ray-core=y
|
||||
# CONFIG_PACKAGE_vsftpd-alt is not set
|
||||
CONFIG_PACKAGE_watchcat=y
|
||||
CONFIG_PACKAGE_wifi-l1profile=y
|
||||
CONFIG_PACKAGE_xray-core=y
|
||||
CONFIG_PACKAGE_zerotier=y
|
||||
CONFIG_TARGET_SQUASHFS_BLOCK_SIZE=1024
|
||||
CONFIG_boost-compile-visibility-hidden=y
|
||||
CONFIG_boost-runtime-shared=y
|
||||
CONFIG_boost-static-and-shared-libs=y
|
||||
CONFIG_boost-variant-release=y
|
||||
CONFIG_first_card=y
|
||||
CONFIG_first_card_EEPROM_name="e2p"
|
||||
CONFIG_first_card_EEPROM_offset="0x0"
|
||||
CONFIG_first_card_EEPROM_size="0x5000"
|
||||
CONFIG_first_card_apcli_ifname="apcli"
|
||||
CONFIG_first_card_bf_sku_path="/etc/wireless/mediatek/mt7615e-sku-bf.dat"
|
||||
CONFIG_first_card_ext_ifname="ra"
|
||||
CONFIG_first_card_init_compatible="mt7615e"
|
||||
CONFIG_first_card_init_script="/lib/wifi/mt7615e.lua"
|
||||
CONFIG_first_card_main_ifname="ra0"
|
||||
CONFIG_first_card_mesh_ifname="mesh"
|
||||
CONFIG_first_card_name="MT7622"
|
||||
CONFIG_first_card_nvram_zone="dev1"
|
||||
CONFIG_first_card_profile_path="/etc/wireless/mediatek/mt7622.1.dat"
|
||||
CONFIG_first_card_single_sku_path="/etc/wireless/mediatek/mt7615e-sku.dat"
|
||||
CONFIG_first_card_wds_ifname="wds"
|
||||
21
devices/x86_64/diy-part1.sh
Executable file
21
devices/x86_64/diy-part1.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Copyright (c) 2019-2020 P3TERX <https://p3terx.com>
|
||||
#
|
||||
# This is free software, licensed under the MIT License.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
# https://github.com/P3TERX/Actions-OpenWrt
|
||||
# File name: diy-part1.sh
|
||||
# Description: OpenWrt DIY script part 1 (Before Update feeds)
|
||||
#
|
||||
|
||||
# Uncomment a feed source
|
||||
#sed -i 's/^#\(.*helloworld\)/\1/' feeds.conf.default
|
||||
|
||||
# Add a feed source
|
||||
|
||||
cat >> feeds.conf.default <<EOF
|
||||
src-git kenzo https://github.com/kenzok8/openwrt-packages
|
||||
src-git passwall https://github.com/xiaorouji/openwrt-passwall
|
||||
EOF
|
||||
25
devices/x86_64/diy-part2.sh
Executable file
25
devices/x86_64/diy-part2.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Copyright (c) 2019-2020 P3TERX <https://p3terx.com>
|
||||
#
|
||||
# This is free software, licensed under the MIT License.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
# https://github.com/P3TERX/Actions-OpenWrt
|
||||
# File name: diy-part2.sh
|
||||
# Description: OpenWrt DIY script part 2 (After Update feeds)
|
||||
#
|
||||
|
||||
# Modify default IP
|
||||
sed -i 's/192.168.1.1/192.168.199.1/g' package/base-files/files/bin/config_generate
|
||||
|
||||
# Modify default theme
|
||||
rm -rf package/lean/luci-theme-argon
|
||||
git clone https://github.com/jerrykuku/luci-theme-argon.git package/lean/luci-theme-argon
|
||||
sed -i 's/luci-theme-bootstrap/luci-theme-argon/' feeds/luci/collections/luci/Makefile
|
||||
|
||||
# Add Packages
|
||||
git clone https://github.com/destan19/OpenAppFilter package/OpenAppFilter
|
||||
git clone https://github.com/lisaac/luci-app-dockerman package/luci-app-dockerman
|
||||
git clone https://github.com/MapesxGM/luci-app-tencentddns package/luci-app-tencentddns
|
||||
git clone https://github.com/jerrykuku/luci-app-argon-config package/luci-app-argon-config
|
||||
Reference in New Issue
Block a user