generated from P3TERX/Actions-OpenWrt
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdiy.sh
executable file
·35 lines (35 loc) · 2.58 KB
/
diy.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
#!/bin/bash
#=================================================
# Description: DIY script
# Lisence: MIT
# Author: P3TERX
# Blog: https://p3terx.com
#=================================================
# Modify default IP
#sed -i 's/192.168.1.1/192.168.50.5/g' package/base-files/files/bin/config_generate
sed -i 's/192.168.1.1/192.168.31.200/g' package/base-files/files/bin/config_generate
wget -O package/base-files/files/etc/hosts https://raw.githubusercontent.com/chenxiccc/Customfiles/master/hosts
wget -O tmp/dhcp.tmp https://raw.githubusercontent.com/chenxiccc/Customfiles/master/newifi3/dhcp
cat tmp/dhcp.tmp >> package/network/services/dnsmasq/files/dhcp.conf
rm tmp/dhcp.tmp
wget -O tmp/firewall.tmp https://raw.githubusercontent.com/chenxiccc/Customfiles/master/newifi3/firewall
cat tmp/firewall.tmp >> package/network/config/firewall/files/firewall.config
rm tmp/firewall.tmp
wget -O feeds/lienol/lienol/luci-app-passwall/root/etc/config/passwall_rule/blacklist_host https://raw.githubusercontent.com/chenxiccc/Customfiles/master/pw/blacklist_host
wget -O feeds/lienol/lienol/luci-app-passwall/root/etc/config/passwall_rule/whitelist_host https://raw.githubusercontent.com/chenxiccc/Customfiles/master/pw/whitelist_host
wget -O feeds/lienol/lienol/luci-app-passwall/root/etc/config/passwall_rule/blacklist_ip https://raw.githubusercontent.com/chenxiccc/Customfiles/master/pw/blacklist_ip
wget -O feeds/lienol/lienol/luci-app-passwall/root/etc/config/passwall_rule/whitelist_ip https://raw.githubusercontent.com/chenxiccc/Customfiles/master/pw/whitelist_ip
#sed -i '1i\127.0.0.1 api.ad.xiaomi.com' package/base-files/files/etc/hosts
#sed -i '1i\127.0.0.1 sdkconfig.ad.xiaomi.com' package/base-files/files/etc/hosts
#sed -i '1i\127.0.0.1 ad.mi.com' package/base-files/files/etc/hosts
#sed -i '1i\127.0.0.1 ad.xiaomi.com' package/base-files/files/etc/hosts
#sed -i '1i\127.0.0.1 ad1.xiaomi.com' package/base-files/files/etc/hosts
#sed -i '1i\127.0.0.1 adv.sec.miui.com' package/base-files/files/etc/hosts
#sed -i '1i\127.0.0.1 test.ad.xiaomi.com' package/base-files/files/etc/hosts
#sed -i '1i\127.0.0.1 new.api.ad.xiaomi.com' package/base-files/files/etc/hosts
#sed -i '1i\127.0.0.1 cdn.ad.xiaomi.com' package/base-files/files/etc/hosts
#sed -i '1i\127.0.0.1 e.ad.xiaomi.com' package/base-files/files/etc/hosts
#sed -i '1i\127.0.0.1 test.new.api.ad.xiaomi.com' package/base-files/files/etc/hosts
#sed -i '1i\127.0.0.1 ssp.ad.xiaomi.com' package/base-files/files/etc/hosts
#sed -i '1i\127.0.0.1 o2o.api.xiaomi.com' package/base-files/files/etc/hosts
#sed -i '1i\127.0.0.1 api.cupid.ptqy.gitv.tv' package/base-files/files/etc/hosts