Skip to content

Commit

Permalink
EOL
Browse files Browse the repository at this point in the history
  • Loading branch information
JKSTAFF committed May 31, 2023
1 parent 377ad9f commit eaad513
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# Description: Build OpenWrt using GitHub Actions
#

name: Build
name: Build for Beryl

on:
repository_dispatch:
Expand Down
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
# match_complier
# match_complier for Beryl
>Custom OpenWrt complier for GL-MT1300
## Why this variant
This repo using github actions to complile firmware for my GL.iNet Beryl(GL-MT1300) , which is minimum-obtrusive to the latest stable version of OpenWrt but only optimize for console game accelerator use. It's a reasonable product positioning for a low-end(mt7621) router.
This branch using github actions to complile firmware for my GL.iNet Beryl(GL-MT1300) , which is minimum-obtrusive to the latest stable version of OpenWrt but only optimize for console game accelerator use. It's a reasonable product positioning for a low-end(mt7621) router.
With that said it's fine to use it complile for other routers in [support list](https://openwrt.org/toh/start).

## Main features
## Main features with my config
* Integrated with wlan offload optimization and fullcone-NAT support to improve connection quality
* Multiple WAN function allows you to increase the net speed exponentially
* Build your own global transit between the router and private server. Xray is recommended due to its [ low CPU cost](https://github.com/v2ray/v2ray-core/issues/2636) and [UDP support](https://github.com/XTLS/Xray-core/discussions/252) as claimed
* Transparent proxy to your private server with fully configurable webui. Xray is recommended due to its [low CPU cost](https://github.com/v2ray/v2ray-core/issues/2636) and [UDP support](https://github.com/XTLS/Xray-core/discussions/252) as claimed
* Fully support LTE modules on USB port
* Using nginx to provide luci and other web page over https. Remote access also available
* HomeAssistant [intergration](https://www.home-assistant.io/integrations/luci/) compatible
* Using nginx to provide luci and other web page over https with ddns remote access

## Usage
## How to use
1. Generate `.config` files with [stock repository](https://github.com/openwrt/openwrt/tree/openwrt-21.02) source code and overwrite it if you don't buy our default package set. You can also change the source code through environment variables in the workflow file
2. Add 3rd-part packages to [this branch](https://github.com/Vector-Digi/match_complier/tree/packages) whatever you want
3. Modify `prefix.sh` and `postfix.sh` to apply custom settings
Expand Down
5 changes: 0 additions & 5 deletions postfix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,24 @@
sed -i 's/auto/zh_cn/g' feeds/luci/modules/luci-base/root/etc/config/luci
sed -i 's/UTC/CST-8/g' package/base-files/files/bin/config_generate
sed -i '/CST-8/a\set system.@system[-1].zonename='"'"'Asia/Shanghai'"'"'' package/base-files/files/bin/config_generate
echo "Change locale to mainland China. You still need to install luci language pack manually."

# Wireless autorun
sed -i 's/disabled=1/disabled=0/g' package/kernel/mac80211/files/lib/wifi/mac80211.sh
#sed -i '/exit 0/i\ifconfig ra0 up && brctl addif br-lan ra0\nifconfig rax0 up && brctl addif br-lan rax0' package/base-files/files/etc/rc.local
echo "Wi-Fi will turn on automaticly."

# Set default password for root
sed -i 's*root::0:0:99999:7:::*root:\$1\$Z5PSAHJ9$1UReP9Mm94CqDFVEnROB//:17713:0:99999:7:::*g' package/base-files/files/etc/shadow
echo "Use 'toor' as the root password."

# Add 3rd-part packages
git clone -b packages https://github.com/JKSTAFF/match_complier.git package/custom
echo "Download 3rd-part packages into custom folder."

# Add Fullcone-NAT option
sed -i '/Netfilter flow offload support/i\o = s.option(form.Flag, '"'"'fullcone'"'"', _('"'"'Enable FullCone-NAT'"'"'));' feeds/luci/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/zones.js
sed -i '/Uncomment this line to disable ipv6 rules/i\option fullcone 0' package/network/config/firewall/files/firewall.config
mkdir package/network/config/firewall/patches/
wget -P package/network/config/firewall/patches/ https://github.com/Lienol/openwrt/raw/21.02/package/network/config/firewall/patches/fullconenat.patch
#wget -P target/linux/generic/hack-5.4/ https://github.com/Lienol/openwrt/raw/main/target/linux/generic/hack-5.4/952-net-conntrack-events-support-multiple-registrant.patch
echo "Add Fullcone-NAT option for firewall GUI."

# Add Wireless fast forwarding
echo "Applying Natflow patches... "
Expand All @@ -57,7 +53,6 @@ echo "BBR activated."
# Modify default gaewayIP
#sed -i 's/192.168/10.0/g' package/base-files/files/bin/config_generate
#sed -i 's/10.0.1/10.0.0/g' package/base-files/files/bin/config_generate
#echo "Set '10.0.0.1' as gateway."

# Enable MIPS FPU emulator
#if grep -q 'CONFIG_TARGET_ramips=y' .config && ! grep -q 'CONFIG_KERNEL_MIPS_FP_SUPPORT=y' .config ;
Expand Down

0 comments on commit eaad513

Please sign in to comment.