kiddin9 3 년 전
부모
커밋
dc60c19dc7
3개의 변경된 파일84개의 추가작업 그리고 60개의 파일을 삭제
  1. 81 58
      README.md
  2. 2 1
      devices/common/.config
  3. 1 1
      devices/common/files/usr/lib/lua/luci/view/admin_status/index/links.htm

+ 81 - 58
README.md

@@ -1,4 +1,4 @@
-# OpenWrt with NGINX for x86_64 NanoPi-R2S R4S Raspberry-Pi-4B
+# OpenWrt with NGINX for x86_64 NanoPi-R2S R4S R2C Raspberry-Pi-4B N1
 [1]: https://img.shields.io/badge/license-GPLV2-brightgreen.svg
 [2]: /LICENSE
 [3]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg
@@ -8,7 +8,7 @@
 [7]: https://img.shields.io/github/v/release/hyird/Action-Openwrt
 [8]: https://github.com/kiddin9/OpenWrt_x86-r2s-r4s/releases
 [10]: https://img.shields.io/badge/Contact-telegram-blue
-[11]: https://t.me/opwrts
+[11]: https://t.me/opwrt
 [12]: https://github.com/kiddin9/OpenWrt_x86-r2s-r4s/actions/workflows/Openwrt-AutoBuild.yml/badge.svg
 [13]: https://github.com/kiddin9/OpenWrt_x86-r2s-r4s/actions
 
@@ -20,9 +20,9 @@
 [![AutoBuild][12]][13]
 
 <a href="https://t.me/opwrts" target="_blank">Telegram</a>
-### 特色:
+## 1. **特色**
 
-+ Cutting edge,openwrt官方openwrt-21.02分支版本, Kernel 5.10, 与官方最新源码同步.
++ Cutting edge,openwrt官方openwrt-21.02分支版本, Kernel 5.15, 与官方最新源码同步.
 
 + 原生极致纯净,固件默认只包含基础上网功能, 后台在线选装插件,系统升级不丢失插件和配置.
 
@@ -44,85 +44,117 @@
 
 + 自定制清爽Material风格新主题Edge
 
+## 2. **固件**
 
-####  固件下载与定制: [https://supes.top](https://supes.top)
+固件生成有3种方式:在线定制化生成、GitHub编译、本地化编译。
 
-#### 后台入口 op/ 或 10.0.0.1 &nbsp;(若后台无法打开,请插拔交换wan,lan网线顺序.)
+可根据需要选择任意一种进行固件生成。
 
-#### 默认密码 root
+### 2.1 **在线生成**
 
-####  Docker镜像: [kiddin9/openwrt-nginx](https://hub.docker.com/r/kiddin9/openwrt-nginx)
+通过浏览器访问[https://supes.top](https://supes.top)进行固件定制,等待固件生成结束之后直接下载使用即可。
 
-#### 固件内置的快捷访问入口(部分服务需要先自行在软件包中安装并启用):
+### 2.2 **GitHub编译**
 
-+ op/ 可打开 OpenWRT后台 即 lan ip
-+ ql/ 可打开 青龙后台 即 lan ip:5700
-+ adg/ 可打开 AdGuardHome管理后台 即 lan ip:3000
-+ pve/ 可打开 Proxmox VE虚拟机管理 默认为 10.0.0.10:8006
-+ by/ 可打开 Bypass插件页面 即 ip/luci/admin/services/bypass
-+ pk/ 可打开 Packages插件管理页面 即 ip/luci/admin/system/opkg
-+ ag/ 可打开 Aria2 Web面板 即 ip/ariang
-+ ug/ 可打开 固件在线更新页面 即 ip/luci/admin/services/gpsysupgrade
-##### 可自行在 /etc/nginx/conf.d/shortcuts.conf 中调整和添加更多快捷访问
-
-第一次使用请采用全新安装,避免出现升级失败以及其他一些可能的Bug.
-
-云编译需要 [在此](https://github.com/settings/tokens) 创建个token,然后在此仓库Settings->Secrets中添加个名字为REPO_TOKEN的Secret,填入token值,否者无法触发编译
-
-在仓库Settings->Secrets中分别添加 PPPOE_USERNAME, PPPOE_PASSWD 可设置默认拨号账号密码.有 [安全隐患](https://github.com/kiddin9/OpenWrt_x86-r2s-r4s/issues/23)
-
-Secrets中添加 SCKEY 可通过[Server酱](http://sc.ftqq.com) 推送编译结果到微信
-
-Secrets中添加 TELEGRAM_CHAT_ID, TELEGRAM_TOKEN 可推送编译结果到Telegram Bot. [教程](https://longnight.github.io/2018/12/12/Telegram-Bot-notifications)
-
-编译触发方式: 
-   + 方式1: Actions页面选择 Repo Dispatcher 点击 Run workflow
-   + 方式2: 请在支持油猴的浏览器中安装 [脚本](https://greasyfork.org/scripts/407616-github-actions-trigger/code/Github%20Actions%20Trigger.user.js) ,仓库右上角会出现 x86_64 Actions,K2P Actions等按钮,点击对应按钮即可.更多玩法 [repo-dispatcher](https://github.com/tete1030/github-repo-dispatcher)
-diy云编译教程: [Read the details in my blog (in Chinese) | 中文教程](https://p3terx.com/archives/build-openwrt-with-github-actions.html)
-
-### 默认插件包含:
-
-+ Opkg 软件包管理
-+ Bypass 智能过墙
-+ Samba4 文件共享(x86)
-+ UPNP 自动端口转发
-+ Turbo ACC 网络加速
++ 将仓库进行fork
 
-其他插件请自行在 后台->软件包 中安装,系统升级不会丢失插件.每次系统升级完成连接网络后,会自动安装所有已自选安装的插件.
++ 按需添加相关环境参数REPO_TOKEN、SCKEY、TELEGRAM_CHAT_ID
 
++ Actions页面选择 Repo Dispatcher 点击 Run workflow
+### 2.3 **GitHub结合浏览器插件编译**
+请在支持油猴的浏览器中安装 [脚本](https://greasyfork.org/scripts/407616-github-actions-trigger/code/Github%20Actions%20Trigger.user.js) ,仓库右上角会出现 x86_64 Actions,K2P Actions等按钮,点击对应按钮即可.更多玩法 [repo-dispatcher](https://github.com/tete1030/github-repo-dispatcher)
 
-### 如何在本地使用此项目编译自己需要的 OpenWrt 固件
+### 2.4 **本地化编译**
 
 #### 注意:
 
 1. **不**要用 **root** 用户 git 和编译!!!
+
 2. 国内用户编译前请准备好梯子,使用大陆白名单或全局模式
+
 3. 请使用Ubuntu 64bit,推荐  Ubuntu 18 或 Ubuntu 20
 
-#### 一键脚本:
+#### 首次编译:
 
- 首次编译:
 ```
 screen -S openwrt
 bash -c "$(curl -fsSL https://git.io/opbuild.sh)"
 ```
 
- 二次编译:
+#### 二次编译:
+
 ```
 screen -S openwrt
 bash -c "$(curl -fsSL https://git.io/rebuild.sh)"
 ```
 
+
+## 3. **使用**
+
+### 3.1 **后台**
+
++ 登录地址 op/ 或 10.0.0.1 (若后台无法打开,请尝试插拔交换wan、lan网线顺序。)
+
++ 默认用户 root
+
++ 默认密码 root
+
+### 3.2 **快捷访问**
+部分服务需要先自行在软件包中安装并启用,可自行在 /etc/nginx/conf.d/shortcuts.conf 中调整和添加更多快捷访问。
+
++ op/ 可打开 OpenWRT后台 即 lan ip
+
++ ql/ 可打开 青龙后台 即 lan ip:5700
+
++ adg/ 可打开 AdGuardHome管理后台 即 lan ip:3000
+
++ pve/ 可打开 Proxmox VE虚拟机管理 默认为 10.0.0.10:8006
+
++ by/ 可打开 Bypass插件页面 即 ip/luci/admin/services/bypass
+
++ pk/ 可打开 Packages插件管理页面 即 ip/luci/admin/system/opkg
+
++ ag/ 可打开 Aria2 Web面板 即 ip/ariang
+
++ ug/ 可打开 固件在线更新页面 即 ip/luci/admin/services/gpsysupgrade
+
+## 4. **注意事项**
+
++ 第一次使用请采用全新安装,避免出现升级失败以及其他一些可能的Bug.
+
++ 云编译需要 [在此](https://github.com/settings/tokens) 创建个token,然后在此仓库Settings->Secrets中添加个名字为REPO_TOKEN的Secret,填入token值,否者无法触发编译。
+
++ 在仓库Settings->Secrets中分别添加 PPPOE_USERNAME, PPPOE_PASSWD 可设置默认拨号账号密码.有 [安全隐患](https://github.com/kiddin9/OpenWrt_x86-r2s-r4s/issues/23)。
+
++ 在仓库Settings->Secrets中添加 SCKEY 可通过[Server酱](http://sc.ftqq.com) 推送编译结果到微信。
+
++ 在仓库Settings->Secrets中添加 TELEGRAM_CHAT_ID, TELEGRAM_TOKEN 可推送编译结果到Telegram Bot. [教程](https://longnight.github.io/2018/12/12/Telegram-Bot-notifications)
+
++ DIY云编译教程参考: [Read the details in my blog (in Chinese) | 中文教程](https://p3terx.com/archives/build-openwrt-with-github-actions.html)
+
+
++ 默认插件包含: Opkg 软件包管理、Bypass 智能过墙、Samba4 文件共享(x86)、UPNP 自动端口转发、Turbo ACC 网络加速。
+其他插件请自行在 后台->软件包 中安装,系统升级不会丢失插件.每次系统升级完成连接网络后,会自动安装所有已自选安装的插件。
+
+## 5. **系统截图展示**
+![](https://github.com/kiddin9/luci-theme-edge/raw/master/Screenshots/1.png)
+![](https://github.com/kiddin9/luci-theme-edge/raw/master/Screenshots/3.png)
+![](https://github.com/kiddin9/luci-theme-edge/raw/master/Screenshots/8.png)
+
+
+------
+For English
+
 Build OpenWrt using GitHub Actions
 
-### Usage
+## Usage
 
 - Sign up for [GitHub Actions](https://github.com/features/actions/signup)
 - Fork [this GitHub repository](https://github.com/kiddin9/OpenWrt)
 - click the `Star` button, and the build will starts automatically.Progress can be viewed on the Actions page.
 - When the build is complete, click the `Artifacts` button in the upper right corner of the Actions page to download the binaries.
 
-### Acknowledgments
+## Acknowledgments
 - [OpenWrt](https://github.com/openwrt/openwrt)
 - [Lean's OpenWrt](https://github.com/coolsnowwolf/lede)
 - [P3TERX](https://github.com/P3TERX/OpenWrt_x86-r2s-r4s/blob/master/LICENSE)
@@ -130,13 +162,4 @@ Build OpenWrt using GitHub Actions
 - [GitHub](https://github.com)
 - [GitHub Actions](https://github.com/features/actions)
 
-![](https://github.com/kiddin9/luci-theme-edge/raw/master/Screenshots/1.png)
-![](https://github.com/kiddin9/luci-theme-edge/raw/master/Screenshots/2.png)
-![](https://github.com/kiddin9/luci-theme-edge/raw/master/Screenshots/3.png)
-![](https://github.com/kiddin9/luci-theme-edge/raw/master/Screenshots/8.png)
-![](https://github.com/kiddin9/luci-theme-edge/raw/master/Screenshots/4.png)
-![](https://github.com/kiddin9/luci-theme-edge/raw/master/Screenshots/5.png)
-<br/>
-<br />
-<img src="https://github.com/kiddin9/luci-theme-edge/raw/master/Screenshots/6.png" width="550" />
-![](https://github.com/kiddin9/luci-theme-edge/raw/master/Screenshots/7.png)
+

+ 2 - 1
devices/common/.config

@@ -12,7 +12,7 @@ CONFIG_SIGNATURE_CHECK=n
 # 设置固件大小:
 CONFIG_TARGET_ROOTFS_PARTSIZE=1004
 
-CONFIG_ALL_KMODS=n
+CONFIG_ALL_KMODS=y
 CONFIG_PACKAGE_kmod-ipt-coova=n
 CONFIG_PACKAGE_kmod-usb-serial-xr_usb_serial_common=n
 
@@ -82,6 +82,7 @@ CONFIG_BUSYBOX_CUSTOM=y
 CONFIG_BUSYBOX_CONFIG_FEATURE_XARGS_SUPPORT_REPL_STR=y
 CONFIG_BUSYBOX_CONFIG_FEATURE_CROND_SPECIAL_TIMES=y
 CONFIG_BUSYBOX_CONFIG_WGET=y
+CONFIG_BUSYBOX_CONFIG_FEATURE_SYSLOG_INFO=y
 
 CONFIG_PACKAGE_bash=y
 CONFIG_PACKAGE_ca-bundle=y

+ 1 - 1
devices/common/files/usr/lib/lua/luci/view/admin_status/index/links.htm

@@ -1,6 +1,6 @@
 <script>
 		var links = document.createElement('div');
-		links.innerHTML ='<div class="table"><div class="tr"><div class="td left"><a href="https://supes.top/" target="_blank">固件下载与定制</a></div><div class="td left" width="25%"><a href="https://supes.top/fadian/" target="_blank" style="color:orangered">赞助</a></div><div class="td left" width="25%"><a href="https://t.me/opwrts" target="_blank">TG交流</a></div><div class="td left" width="25%"><a href="https://github.com/kiddin9/OpenWrt_x86-r2s-r4s" target="_blank">源码与反馈</a></div></div></div>';
+		links.innerHTML ='<div class="table"><div class="tr"><div class="td left"><a href="https://supes.top/" target="_blank">固件下载与定制</a></div><div class="td left" width="25%"><a href="https://supes.top/fadian/" target="_blank" style="color:orangered">赞助</a></div><div class="td left" width="25%"><a href="https://t.me/opwrt" target="_blank">TG频道</a></div><div class="td left" width="25%"><a href="https://github.com/kiddin9/OpenWrt_x86-r2s-r4s" target="_blank">源码与反馈</a></div></div></div>';
 		setTimeout(function(){
 		var telegram = document.querySelectorAll(".cbi-section")[0];
 		telegram.appendChild(links);