GithubHelp home page GithubHelp logo

liuyang7 / openwrtcompilescript Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openwrtcompileshell/openwrtcompilescript

0.0 1.0 0.0 5.83 MB

此脚本可以帮助你更快的搭建openwrt环境,但不会帮你完成整个编译过程

License: GNU General Public License v3.0

Shell 87.89% HTML 4.62% Makefile 7.49%

openwrtcompilescript's Introduction

OpenwrtCompileScript

序言

用于辅助Openwrt编译,但不会帮你完成整个编译过程,需要一点Openwrt编译基础

降低编译难度,减少重复的步骤,但不利于学习,此脚本适用于有点openwrt编译的基础的最佳,完全没有编译基础的请去补充相关知识

想学点东西请走这里: https://www.right.com.cn/forum/thread-324501-1-1.html

此脚本并不是无脑脚本,这个脚本对新手是无脑的但要点基础,起码你要会选择机型与插件,有点基础的可以说是辅助,加快你的编译速度,写这个脚本的初衷就是编译的过程重复太多,所以写了脚本

感谢 @学渣 @sjz 等的帮助

支持系统

The script is made to work on these OS :

  • Ubuntu 16.4
  • Ubuntu 18.4 (首选,脚本基于此版本编写测试)
  • win10子系统(ubuntu 18.04 LTS)

Usage 使用方法

1、使用git克隆下载脚本并赋予执行权限

git clone https://github.com/openwrtcompileshell/OpenwrtCompileScript.git && chmod +x OpenwrtCompileScript/openwrt.sh

2、进入脚本目录并执行

cd OpenwrtCompileScript && bash openwrt.sh

注意:执行脚本后会自动添加系统变量,第二次可使用如下命令运行脚本。

bash $openwrt

脚本详细使用方法

https://www.right.com.cn/forum/thread-345378-1-1.html

交流技术适当吹水群:667491026 (拒绝大爷公子伸手党)

版本修改记录

++2.7版本

  1. 修改脚本名字为《openwr.sh》不再以版本命名,以后执行脚本bash openwrt.sh即可
  2. 加入if判断是否源码下载成功
  3. Dl服务器下载增加一个参数,解决证书不信任问题
  4. 增加脚本描述文本
  5. 文件夹创建提前
  6. 加入时间计算让自己更加直观看到编译耗时
  7. 增加多线程编译可以自己决定以多少线程进行编译
  8. 增加脚本自检程序
  9. 新增选项 9.更新脚本
  10. 优化一下代码
  11. 增加一个ls函数模块
  12. 适配win10子系统(ubuntu 18.04 LTS)
  13. 删除无用的5.选项替换DNS

++2.6版本

  1. 支持不在home底下也能正常运行,因为服了一下小白老是报错
  2. 只需要执行脚本就可以操作你任意的openwrt文件夹
  3. 新增国内DL服务器(感谢LGA1150)
  4. 新增选择( 6.其他选项),可以单独使用个别模块,如:支持单独只搭建编译环境,而不进行编译
  5. 创建文件时加入判断,防止覆盖之前的目录
  6. 删除之前的个别文件,脚本执行目录随意没有要求了,但Home目录底下的Openwrt目录禁止改名移动

++2.5版本

  1. 简化之前目录
  2. 代码的重写
  3. 一个目录方便管理
  4. 加入Lean_R9_source and Openwrt17.01_source

++2.4版本

  1. 增加config文件保存与调用(家里机型较多的可以更省事),此建议由 @兔巴哥提供

++2.3版本

  1. 合并功能按键并增加第5.HOST选项

openwrtcompilescript's People

Contributors

itdesk01 avatar juanbrend 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.