-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiy-part2-x86.sh
53 lines (41 loc) · 1.88 KB
/
diy-part2-x86.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/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.4.1/g' package/base-files/files/bin/config_generate
# Modify default DNS
sed -i '/network.$1.netmask'/a"\\ \t\ \t\ \t\ \tset network.\$1.dns='127.0.0.1 223.5.5.5 8.8.8.8'" package/base-files/files/bin/config_generate
# Modify default theme
sed -i 's/bootstrap/argon/g' feeds/luci/collections/luci/Makefile
# luci-theme-argon
rm -rf feeds/luci/themes/luci-theme-argon/
git clone -b 18.06 https://github.com/jerrykuku/luci-theme-argon.git feeds/luci/themes/luci-theme-argon
git clone https://github.com/jerrykuku/luci-app-argon-config.git package/diy/luci-app-argon-config
# openclash
wget -P package/diy/openclash -c https://github.com/vernesong/OpenClash/archive/refs/heads/master.zip
unzip -o package/diy/openclash/master.zip -d package/diy/openclash/
# 编译 po2lmo
pushd package/diy/openclash/OpenClash-master/luci-app-openclash/tools/po2lmo
make && sudo make install
popd
# cd $GITHUB_WORKSPACE/openwrt
#openwrt-v2ray
# git clone https://github.com/kuoruan/openwrt-v2ray.git package/diy/openwrt-v2ray
#luci-app-v2ray
# git clone -b legacy https://github.com/kuoruan/luci-app-v2ray.git package/diy/luci-app-v2ray
# openwrt_nezha
# git clone https://github.com/Erope/openwrt_nezha.git package/diy/openwrt_nezha
# luci-app-adguardhome
# git clone https://github.com/rufengsuixing/luci-app-adguardhome.git package/diy/luci-app-adguardhome
# luci-app-poweroff
git clone https://github.com/esirplayground/luci-app-poweroff.git package/diy/luci-app-poweroff
# luci-app-aliddns
git clone https://github.com/chenhw2/luci-app-aliddns.git package/diy/luci-app-aliddns