6
6
# 更改默认 Shell 为 zsh
7
7
# sed -i 's/\/bin\/ash/\/usr\/bin\/zsh/g' package/base-files/files/etc/passwd
8
8
9
- # TTYD 自动登录
9
+ # TTYD 免登录
10
10
# sed -i 's|/bin/login|/bin/login -f root|g' feeds/packages/utils/ttyd/files/ttyd.config
11
11
12
12
# 移除要替换的包
@@ -19,41 +19,46 @@ rm -rf feeds/luci/applications/luci-app-mosdns
19
19
rm -rf feeds/luci/applications/luci-app-netdata
20
20
rm -rf feeds/luci/applications/luci-app-serverchan
21
21
22
+ # Git稀疏克隆,只克隆指定目录到本地
23
+ function git_sparse_clone() {
24
+ branch=" $1 " repourl=" $2 " && shift 2
25
+ git clone --depth=1 -b $branch --single-branch --filter=blob:none --sparse $repourl
26
+ repodir=$( echo $repourl | awk -F ' /' ' {print $(NF)}' )
27
+ cd $repodir && git sparse-checkout set $@
28
+ mv -f $@ ../package
29
+ cd .. && rm -rf $repodir
30
+ }
31
+
22
32
# 添加额外插件
23
33
git clone --depth=1 https://github.com/kongfl888/luci-app-adguardhome package/luci-app-adguardhome
24
34
git clone --depth=1 -b openwrt-18.06 https://github.com/tty228/luci-app-wechatpush package/luci-app-serverchan
25
35
git clone --depth=1 https://github.com/ilxp/luci-app-ikoolproxy package/luci-app-ikoolproxy
26
36
git clone --depth=1 https://github.com/esirplayground/luci-app-poweroff package/luci-app-poweroff
27
37
git clone --depth=1 https://github.com/destan19/OpenAppFilter package/OpenAppFilter
28
38
git clone --depth=1 https://github.com/Jason6111/luci-app-netdata package/luci-app-netdata
29
- svn export https://github.com/Lienol/openwrt-package/trunk/luci-app-filebrowser package/luci-app-filebrowser
30
- svn export https://github.com/Lienol/openwrt-package/trunk/luci-app-ssr-mudb-server package/luci-app-ssr-mudb-server
31
- svn export https://github.com/immortalwrt/luci/branches/openwrt-18.06/applications/luci-app-eqos package/luci-app-eqos
32
- # svn export https://github.com/syb999/openwrt-19.07.1/trunk/package/network/services/msd_lite package/msd_lite
39
+ git_sparse_clone main https://github.com/Lienol/openwrt-package luci-app-filebrowser luci-app-ssr-mudb-server
40
+ git_sparse_clone openwrt-18.06 https://github.com/immortalwrt/luci applications/luci-app-eqos
41
+ # git_sparse_clone master https://github.com/syb999/openwrt-19.07.1 package/network/services/msd_lite
33
42
34
43
# 科学上网插件
35
44
git clone --depth=1 -b main https://github.com/fw876/helloworld package/luci-app-ssr-plus
36
- svn export https://github.com/haiibo/packages/trunk/luci-app-vssr package/luci-app-vssr
37
- git clone --depth=1 https://github.com/jerrykuku/lua-maxminddb package/lua-maxminddb
38
45
git clone --depth=1 https://github.com/xiaorouji/openwrt-passwall-packages package/openwrt-passwall
39
- svn export https://github.com/xiaorouji/openwrt-passwall/trunk/luci-app -passwall package/luci-app-passwall
40
- svn export https://github.com/xiaorouji/openwrt-passwall2/trunk/luci-app -passwall2 package/luci-app-passwall2
41
- svn export https://github.com/vernesong/OpenClash/trunk/luci-app-openclash package/ luci-app-openclash
46
+ git clone --depth=1 https://github.com/xiaorouji/openwrt-passwall package/luci-app-passwall
47
+ git clone --depth=1 https://github.com/xiaorouji/openwrt-passwall2 package/luci-app-passwall2
48
+ git_sparse_clone master https://github.com/vernesong/OpenClash luci-app-openclash
42
49
43
50
# Themes
44
51
git clone --depth=1 -b 18.06 https://github.com/kiddin9/luci-theme-edge package/luci-theme-edge
45
52
git clone --depth=1 -b 18.06 https://github.com/jerrykuku/luci-theme-argon package/luci-theme-argon
46
53
git clone --depth=1 https://github.com/jerrykuku/luci-app-argon-config package/luci-app-argon-config
47
54
git clone --depth=1 https://github.com/xiaoqingfengATGH/luci-theme-infinityfreedom package/luci-theme-infinityfreedom
48
- svn export https://github.com/haiibo/packages/trunk/luci-theme-atmaterial package/luci-theme-atmaterial
49
- svn export https://github.com/haiibo/packages/trunk/luci-theme-opentomcat package/luci-theme-opentomcat
50
- svn export https://github.com/haiibo/packages/trunk/luci-theme-netgear package/luci-theme-netgear
55
+ git_sparse_clone main https://github.com/haiibo/packages luci-theme-atmaterial luci-theme-opentomcat luci-theme-netgear
51
56
52
57
# 更改 Argon 主题背景
53
58
cp -f $GITHUB_WORKSPACE /images/bg1.jpg package/luci-theme-argon/htdocs/luci-static/argon/img/bg1.jpg
54
59
55
60
# 晶晨宝盒
56
- svn export https://github.com/ophub/luci-app-amlogic/trunk/luci-app-amlogic package/ luci-app-amlogic
61
+ git_sparse_clone main https://github.com/ophub/luci-app-amlogic luci-app-amlogic
57
62
sed -i " s|firmware_repo.*|firmware_repo 'https://github.com/haiibo/OpenWrt'|g" package/luci-app-amlogic/root/etc/config/amlogic
58
63
# sed -i "s|kernel_path.*|kernel_path 'https://github.com/ophub/kernel'|g" package/luci-app-amlogic/root/etc/config/amlogic
59
64
sed -i " s|ARMv8|ARMv8_PLUS|g" package/luci-app-amlogic/root/etc/config/amlogic
@@ -67,23 +72,21 @@ git clone --depth=1 https://github.com/ximiTech/luci-app-msd_lite package/luci-a
67
72
git clone --depth=1 https://github.com/ximiTech/msd_lite package/msd_lite
68
73
69
74
# MosDNS
70
- svn export https://github.com/sbwml/luci-app-mosdns/trunk/luci-app-mosdns package/luci-app-mosdns
71
- svn export https://github.com/sbwml/luci-app-mosdns/trunk/mosdns package/mosdns
72
-
73
- # DDNS.to
74
- svn export https://github.com/linkease/nas-packages-luci/trunk/luci/luci-app-ddnsto package/luci-app-ddnsto
75
- svn export https://github.com/linkease/nas-packages/trunk/network/services/ddnsto package/ddnsto
75
+ git clone --depth=1 https://github.com/sbwml/luci-app-mosdns package/luci-app-mosdns
76
76
77
77
# Alist
78
- svn export https://github.com/sbwml/luci-app-alist/trunk/luci-app-alist package/luci-app-alist
79
- svn export https://github.com/sbwml/luci-app-alist/trunk/alist package/alist
78
+ git clone --depth=1 https://github.com/sbwml/luci-app-alist package/luci-app-alist
79
+
80
+ # DDNS.to
81
+ git_sparse_clone main https://github.com/linkease/nas-packages-luci luci/luci-app-ddnsto
82
+ git_sparse_clone master https://github.com/linkease/nas-packages network/services/ddnsto
80
83
81
84
# iStore
82
- svn export https://github.com/linkease/istore-ui/trunk/app-store-ui package/ app-store-ui
83
- svn export https://github.com/linkease/istore/trunk/luci package/ luci-app-store
85
+ git_sparse_clone main https://github.com/linkease/istore-ui app-store-ui
86
+ git_sparse_clone main https://github.com/linkease/istore luci
84
87
85
88
# 在线用户
86
- svn export https://github.com/haiibo/packages/trunk/luci-app-onliner package/ luci-app-onliner
89
+ git_sparse_clone main https://github.com/haiibo/packages luci-app-onliner
87
90
sed -i ' $i uci set nlbwmon.@nlbwmon[0].refresh_interval=2s' package/lean/default-settings/files/zzz-default-settings
88
91
sed -i ' $i uci commit nlbwmon' package/lean/default-settings/files/zzz-default-settings
89
92
chmod 755 package/luci-app-onliner/root/usr/share/onliner/setnlbw.sh
0 commit comments