forked from Ljzkirito/Actions-ImmortalWrt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
diy-part1.sh
36 lines (33 loc) · 1.26 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
#!/bin/bash
#
# Copyright (c) 2019-2020 P3TERX <https://p3terx.com>
#
# This is free software, licensed under the MIT License.
# See /LICENSE for more information.
#
# https://github.com/P3TERX/Actions-OpenWrt
# File name: diy-part1.sh
# Description: OpenWrt DIY script part 1 (Before Update feeds)
#
echo "src-git helloworld https://github.com/fw876/helloworld.git;master" >> "feeds.conf.default"
echo "src-git customsd https://github.com/Ljzkirito/smartdns-openwrt.git;Release46-conf" >> "feeds.conf.default"
# Replace /lib/netifd/ppp-down
# https://github.com/hanwckf/immortalwrt-mt798x/issues/57
#cat >> package/network/services/ppp/files/lib/netifd/ppp-down <<EOF
#while true; do
# if ubus -S list "network.interface.wan_6"; then
# # ubus call network.interface.wan_6 down
# logger "waiting wan_6 down..."
# sleep 1
# else
# break
# fi
#done
#EOF
# 取消Dnsmasq缓存,由smartdns负责。不修改ttl
#sed -i 's/cachesize\t8000/cachesize\t0/g' package/network/services/dnsmasq/files/dhcp.conf
#sed -i 's/mini_ttl\t3600/mini_ttl\t0/g' package/network/services/dnsmasq/files/dhcp.conf
# Remove 6in4
#sed -i 's/ +6in4//g' package/emortal/ipv6-helper/Makefile
#sed -i '/hotplug.d/d' package/emortal/ipv6-helper/Makefile
#rm -fv package/emortal/ipv6-helper/files/60-6in4