-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathmy_prepare_package.sh
executable file
·51 lines (34 loc) · 1.46 KB
/
my_prepare_package.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
#!/bin/bash
OP_SC_DIR=$(pwd)
################ 修改 Nick 的脚本 -Start- ################
# 创建插件存放目录
mkdir -p package/new
# 移除多余组件
sed -i '/# AutoReboot/,/# Golang/d' 02_prepare_package.sh
sed -i '/# Ram-free/,/fuck/d' 02_prepare_package.sh
################ 修改 Nick 的脚本 -End- ################
################ 执行 02 脚本 -Start- ################
/bin/bash 02_prepare_package.sh
################ 执行 02 脚本 -End- ################
################ 自定义部分 -Start- ################
# 调整 LuCI 依赖,去除 luci-app-opkg,替换主题 bootstrap 为 argon
sed -i '/+luci-light/d;s/+luci-app-opkg/+luci-light/' ./feeds/luci/collections/luci/Makefile
sed -i 's/luci-theme-bootstrap/luci-theme-argon/' ./feeds/luci/collections/luci-light/Makefile
# Argon 主题
bash ${OP_SC_DIR}/../PATCH/app/Argon.sh
# ShellCrash
bash ${OP_SC_DIR}/../PATCH/app/ShellCrash.sh
# frpc
# bash ${OP_SC_DIR}/../PATCH/app/frpc.sh
# Wake-on-LAN-plus
# svn export https://github.com/msylgj/OpenWrt_luci-app/trunk/luci-app-services-wolplus package/new/luci-app-services-wolplus
# Docker
# pushd feeds/packages
# wget -qO- https://github.com/openwrt/packages/commit/d9d5109.patch | patch -p1
# popd
# sed -i '/sysctl.d/d' feeds/packages/utils/dockerd/Makefile
# 调整默认 LAN IP
sed -i 's/192.168.1.1/192.168.24.1/g' package/base-files/files/bin/config_generate
################ 自定义部分 -End- ################
unset OP_SC_DIR
exit 0