forked from haiibo/OpenWrt
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdiy-iw25.sh
More file actions
52 lines (38 loc) · 2.05 KB
/
Copy pathdiy-iw25.sh
File metadata and controls
52 lines (38 loc) · 2.05 KB
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
#!/bin/bash
# 修改默认IP
sed -i 's/192.168.1.1/10.10.1.1/g' package/base-files/files/bin/config_generate
# 更改默认 Shell 为 fish
sed -i 's/\/bin\/ash/\/usr\/bin\/fish/g' package/base-files/files/etc/passwd
#添加Nikki
#echo "src-git nikki https://github.com/nikkinikki-org/OpenWrt-nikki.git;main" >> "feeds.conf.default"
#./scripts/feeds update -a
#替换luci-app-dae
# rm -rf feeds/luci/applications/luci-app-dae
# git clone https://github.com/Pacalini/luci-app-dae package/luci-app-dae
#
#修改homeproxy
rm -rf feeds/luci/applications/luci-app-homeproxy
git clone -b dev https://github.com/immortalwrt/homeproxy.git package/homrproxy #使用immortalwrt/dev分支
# 添加luci-app-easytier
git clone https://github.com/EasyTier/luci-app-easytier.git package/luci-app-easytier
#添加 OpenAppFliter
#git clone https://github.com/destan19/OpenAppFilter.git package/OpenAppFilter
# 添加额外插件
git clone --depth=1 https://github.com/kongfl888/luci-app-adguardhome package/luci-app-adguardhome
#添加dae支持
#git clone https://github.com/QiuSimons/luci-app-daed package/dae
#mkdir -p Package/libcron && wget -O Package/libcron/Makefile https://raw.githubusercontent.com/immortalwrt/packages/refs/heads/master/libs/libcron/Makefile
#添加pushbot
git clone https://github.com/gaoyaxuan/luci-app-pushbot.git package/luci-app-pushbot
# Themes
git clone --depth=1 -b master https://github.com/kiddin9/luci-theme-edge package/luci-theme-edge
# x86 型号只显示 CPU 型号
sed -i 's/${g}.*/${a}${b}${c}${d}${e}${f}${hydrid}/g' package/emortal/autocore/files/x86/autocore
# 修改本地时间格式
sed -i 's/os.date()/os.date("%a %Y-%m-%d %H:%M:%S")/g' package/emortal/autocore/files/*/index.htm
# 修改版本为编译日期
date_version=$(date +"%y.%m.%d")
orig_version=$(cat "package/emortal/default-settings/files/99-default-settings" | grep DISTRIB_REVISION= | awk -F "'" '{print $2}')
sed -i "s/${orig_version}/R${date_version} by LoogCP/g" package/emortal/default-settings/files/99-default-settings
./scripts/feeds update -a
./scripts/feeds install -a -f