generated from P3TERX/Actions-OpenWrt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
diy-part2-xgp.sh
90 lines (71 loc) · 2.19 KB
/
diy-part2-xgp.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/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.50.5/g' package/base-files/files/bin/config_generate
#mkdir lean
#pushd lean
#git clone --depth=1 https://github.com/coolsnowwolf/lede .
#rm -rf ../package/libs/openssl
#cp -rf ./package/libs/openssl ../package/libs/
#popd
sed -i 's/+zlib +libopenssl-legacy/+zlib/' package/feeds/helloworld/shadowsocksr-libev/Makefile
mkdir Modem-Support
pushd Modem-Support
git clone --depth=1 https://github.com/Siriling/5G-Modem-Support .
rm -rf ../package/wwan/driver/quectel_MHI
cp -rf quectel_MHI ../package/wwan/driver/
popd
mkdir MyConfig
pushd MyConfig
git clone --depth=1 https://github.com/Siriling/OpenWRT-MyConfig .
popd
mkdir package/community
pushd package/community
# 5G模组短信插件
mkdir sms-tool
mkdir luci-app-sms-tool
cp -rf ../../Modem-Support/sms-tool/* sms-tool
cp -rf ../../Modem-Support/luci-app-sms-tool/* luci-app-sms-tool
cp -rf ../../MyConfig/configs/lede/general/applications/luci-app-sms-tool/* luci-app-sms-tool
# 5G模组信息插件+AT工具
mkdir luci-app-modem
cp -rf ../../Modem-Support/luci-app-modem/* luci-app-modem
popd
#5G相关
echo "
# 5G模组信号插件
# CONFIG_PACKAGE_ext-rooter-basic=y
# 5G模组短信插件
CONFIG_PACKAGE_luci-app-sms-tool=y
# 5G模组信息插件
# CONFIG_PACKAGE_luci-app-3ginfo-lite=y
# CONFIG_PACKAGE_luci-app-3ginfo=y
# 5G模组信息插件+AT工具
# CONFIG_PACKAGE_luci-app-cpe=y
# CONFIG_PACKAGE_sendat=y
CONFIG_PACKAGE_luci-app-modem=y
# QMI拨号工具(移远,广和通)
# CONFIG_PACKAGE_quectel-CM-5G=y
# CONFIG_PACKAGE_fibocom-dial=y
# QMI拨号软件
# CONFIG_PACKAGE_kmod-qmi_wwan_f=y
# CONFIG_PACKAGE_luci-app-hypermodem=y
# Gobinet拨号软件
# CONFIG_PACKAGE_kmod-gobinet=y
# CONFIG_PACKAGE_luci-app-gobinetmodem=y
# 串口调试工具
CONFIG_PACKAGE_minicom=y
# 脚本拨号工具依赖
# CONFIG_PACKAGE_grep=y
# CONFIG_PACKAGE_procps-ng=y
# CONFIG_PACKAGE_procps-ng-ps=y
" >> .config