forked from P3TERX/Actions-OpenWrt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
diy-part2.sh
executable file
·34 lines (28 loc) · 1.67 KB
/
diy-part2.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
#!/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)
#
sed -i 's/default "0"/default "3"/g' config/Config-images.in
sed -i 's/192.168.1.1/192.168.5.1/g' package/base-files/files/bin/config_generate
sed -i 's/default 448/default 2000/g' config/Config-images.in
sed -i 's/automount //g' target/linux/x86/Makefile
sed -i 's/autosamba //g' target/linux/x86/Makefile
sed -n 's/^PKG_VERSION:=//p' feeds/passwall2/luci-app-passwall2/Makefile | xargs -I {} sed -i "s/DIYVERSION/{}/g" feeds/diy/changen/passwallMakefile
cp -f feeds/diy/changen/passwallMakefile feeds/passwall2/luci-app-passwall2/Makefile
sed -i 's/20230207/20241031/g' feeds/packages/net/kcptun/Makefile
sed -i 's/09054b52d5799a8e47edb36f2db335d929d5bbb63a26f7ba2fe03c64ec39d550/f3430de60f219bdd8d4d57468e827559791ae63ce0b84f50840b24b45647a8f7/g' feeds/packages/net/kcptun/Makefile
sed -i 's/0.51.3/0.61.0/g' feeds/packages/net/frp/Makefile
sed -i 's/83032399773901348c660d41c967530e794ab58172ccd070db89d5e50d915fef/c06a11982ef548372038ec99a6b01cf4f7817a9b88ee5064e41e5132d0ccb7e1/g' feeds/packages/net/frp/Makefile
sed -i 's/full.ini/full_example.toml/g' feeds/packages/net/frp/Makefile
echo -n "" > feeds/packages/net/frp/files/frpc.init
echo -n "" > feeds/packages/net/frp/files/frps.init
cp -f feeds/diy/changen/targetmk include/target.mk
cp -f feeds/diy/changen/index.htm package/lean/autocore/files/x86/index.htm
cp -f feeds/diy/changen/nginx.config feeds/packages/net/nginx-util/files/nginx.config