forked from wvvwcom/R619AC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiy-part1.sh
57 lines (49 loc) · 2.97 KB
/
diy-part1.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
#!/bin/bash
#=============================================================
# https://github.com/P3TERX/Actions-OpenWrt
# File name: diy-part1.sh
# Description: OpenWrt DIY script part 1 (Before Update feeds)
# Lisence: MIT
# Author: P3TERX
# Blog: https://p3terx.com
#=============================================================
# 增加https://github.com/kenzok8/openwrt-packages到更新源
# src-git kenzo https://github.com/kenzok8/openwrt-packages
# fw876/helloworld
# sed -i 's/^#\(.*helloworld\)/\1/' feeds.conf.default
# sed -i 's@coolsnowwolf/packages@P3TERX/packages@' feeds.conf.default
# 删除默认软件
# sed -i 's/autosamba//g' target/linux/ipq40xx/Makefile
# sed -i 's/luci-app-ipsec-vpnd//g' target/linux/ipq40xx/Makefile
# sed -i 's/luci-app-zerotier//g' target/linux/ipq40xx/Makefile
# 获取Lienol-xiaorouji-passwall
# git clone https://github.com/xiaorouji/openwrt-package/lienol/ package/diy-packages/lienol
# git clone https://github.com/xiaorouji/openwrt-package/tree/master/lienol/luci-app-passwall package/luci-app-passwall
# git clone https://github.com/kenzok8/openwrt-packages.git package/diy-packages
# git clone https://github.com/kenzok8/small.git package/small
# 增加ssr
# git clone https://github.com/kenzok8/openwrt-packages.git package/openwrt-packages
# git clone https://github.com/fw876/helloworld.git package/openwrt-packages/luci-app-ssr-plus
# fw876/helloworld
rm -rf package/helloworld
git clone https://github.com/fw876/helloworld.git package/helloworld
# torjan节点默认允许不安全连接
sed -i 's/result.insecure = \"0\"/result.insecure = \"1\"/g' package/helloworld/luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.lua
# iwrt/luci-app-ikoolproxy
rm -rf package/luci-app-ikoolproxy
git clone https://github.com/iwrt/luci-app-ikoolproxy.git package/luci-app-ikoolproxy
# package from lienol begin
rm -rf package/lienol
git clone https://github.com/Lienol/openwrt-package.git package/lienol
# svn co https://github.com/Lienol/openwrt-luci/trunk/transplant/luci-app-ksmbd package/lienol/luci-app-ksmbd
svn co https://github.com/kiddin9/openwrt-packages/trunk/luci-app-ksmbd package/lienol/luci-app-ksmbd
svn co https://github.com/kiddin9/openwrt-packages/trunk/autoshare-ksmbd package/lienol/autoshare-ksmbd
svn co https://github.com/kiddin9/openwrt-packages/trunk/luci-app-adbyby-plus package/lienol/luci-app-adbyby-plus
# sed -i 's/translate("Create mask"),/translate("Create mask"))/g' package/lienol/luci-app-ksmbd/luasrc/model/cbi/ksmbd.lua
# sed -i '/translate("Mask for new files")/d' package/lienol/luci-app-ksmbd/luasrc/model/cbi/ksmbd.lua
# sed -i 's/translate("Directory mask"),/translate("Directory mask"))/g' package/lienol/luci-app-ksmbd/luasrc/model/cbi/ksmbd.lua
# sed -i '/translate("Mask for new directories")/d' package/lienol/luci-app-ksmbd/luasrc/model/cbi/ksmbd.lua
# package from lienol end
# vernesong/OpenClash
rm -rf package/luci-app-openclash
svn co https://github.com/vernesong/OpenClash/trunk/luci-app-openclash package/luci-app-openclash