forked from wq0072/Actions-OpenWrt-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
diy-2.sh
47 lines (43 loc) · 1.9 KB
/
diy-2.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
#!/bin/bash
#=================================================
# Description: DIY script
# Lisence: MIT
# Author: P3TERX
# Blog: https://p3terx.com
#=================================================
# Modify default IP
#修改默认 IP为192.168.50.5
#sed -i 's/192.168.1.1/192.168.50.5/g' package/base-files/files/bin/config_generate
#取消bootstrap为默认主题
#sed -i '/set luci.main.mediaurlbase=\/luci-static\/bootstrap/d' feeds/luci/themes/luci-theme-bootstrap/root/etc/uci-defaults/30_luci-theme-bootstrap
#删除默认密码
#sed -i "/CYXluq4wUazHjmCDBCqXF/d" package/lean/default-settings/files/zzz-default-settings
#删除原主题
#rm -rf package/lean/luci-theme-argon
#添加主题
#git clone https://github.com/sypopo/luci-theme-atmaterial.git package/luci-theme-atmaterial
git clone https://github.com/Leo-Jo-My/luci-theme-opentomato.git package/luci-theme-opentomato
#添加ssrplus
git clone https://github.com/fw876/helloworld.git package/helloworld
#添加passwall
git clone https://github.com/yingdk/openwrt-package.git package/lienol
#添加hello world
git clone https://github.com/jerrykuku/lua-maxminddb.git package/lua-maxminddb
git clone https://github.com/jerrykuku/luci-app-vssr.git package/luci-app-vssr
#添加Openclash
git clone https://github.com/vernesong/OpenClash.git package/openclash
#添加koolproxyR
#git clone https://github.com/jefferymvp/luci-app-koolproxyR.git package/koolproxyR
#添加adguardhome
#git clone https://github.com/rufengsuixing/luci-app-adguardhome.git package/adguardhome
#删除helloworld+ssrplus冲突文件
rm -rf package/luci-app-vssr/root/etc/china_ssr.txt
rm -rf package/luci-app-vssr/root/etc/dnsmasq.oversea/oversea_list.conf
rm -rf package/luci-app-vssr/root/etc/dnsmasq.ssr/gfw_base.conf
rm -rf package/luci-app-vssr/root/etc/dnsmasq.ssr/gfw_list.conf
#-清理feeds
#./scripts/feeds clean
#-更新feeds
./scripts/feeds update -a
#-安装feeds
./scripts/feeds install -a