Code Monkey home page Code Monkey logo

actions-openwrt's Introduction

# 将之前的`.config`拷贝到编译环境
# docker cp config openwrt-build-env:/tmp/.config

# 进入编译环境容器
docker exec -it openwrt-build-env bash
# chown user:user /tmp/.config

# 开启代理
export https_proxy=http://172.17.0.1:7890 http_proxy=http://172.17.0.1:7890 all_proxy=socks5://172.17.0.1:7891

# clone lede
git clone https://github.com/coolsnowwolf/lede.git

# 进入仓库
cd lede

# 添加必备软件
# sed -i 's/^#\(.*helloworld\)/\1/' feeds.conf.default
sed -i '$a src-git helloworld https://github.com/fw876/helloworld' feeds.conf.default
sed -i '$a src-git openclash https://github.com/vernesong/OpenClash' feeds.conf.default

# 修改默认 IP
sed -i 's/192.168.1.1/192.168.1.10/g' package/base-files/files/bin/config_generate

# 修改内核为4.19
sed -i 's/KERNEL_PATCHVER:=5.10/KERNEL_PATCHVER:=4.19/g' ./target/linux/x86/Makefile
sed -i 's/KERNEL_TESTING_PATCHVER:=5.10/KERNEL_TESTING_PATCHVER:=4.19/g' ./target/linux/x86/Makefile

# 刷新feed
./scripts/feeds update -a
./scripts/feeds install -a

# cp 之前的 config
# cp /tmp/.config /home/user/lede/

# 调整编译选项
make menuconfig
# 勾选 Utilities--> acpid # 关机、重启支持

# 下载软件包,本地做测试不需要进行以下步骤
# 云编译直接下载`.config`上传即可
# make download -j8
# make -j$(($(nproc) + 1)) V=s
# cp `.config`到宿主机
docker cp openwrt-build-env:/home/user/lede/.config /root/config

actions-openwrt's People

Contributors

superng6 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.