change 4.0

This commit is contained in:
2026-04-14 12:16:31 +08:00
parent 0b3d5d7d00
commit 6f634771cb
13 changed files with 234 additions and 84 deletions

View File

@@ -3,26 +3,24 @@
cd
git clone https://git.nia.ink/brnet/bird_config.git
cp /etc/bird/ /etc/bird.old/ -r
rm /etc/bird/filter -rf
mv ./bird_config/bird/filter /etc/bird/filter
rm /etc/bird/function -rf
mv ./bird_config/bird/function /etc/bird/function
rm /etc/bird/whitelist -rf
mv ./bird_config/bird/whitelist /etc/bird/whitelist
rm /etc/bird/template -rf
mv ./bird_config/bird/template /etc/bird/template
mv /etc/bird/whitelist/ipconfig.conf /etc/bird/whitelist/ipconfig.conf.bak
rm /etc/bird/whitelist/*.conf -rf
mv /etc/bird/whitelist/ipconfig.conf.bak /etc/bird/whitelist/ipconfig.conf
wget https://noc.zhuantou.com.cn/api/network.php?s=inet6-bird-function -O /etc/bird/whitelist/mynet_ipv6.conf
wget https://noc.zhuantou.com.cn/api/network.php?s=inet4-bird-function -O /etc/bird/whitelist/mynet_ipv4.conf
wget https://noc.zhuantou.com.cn/api/network.php?s=dn42-bird-function -O /etc/bird/whitelist/mynet_dn42.conf
rm /etc/bird/function -rf
mv ./bird_config/bird/function /etc/bird/function
chmod -R 755 /etc/bird
chmod +x /etc/bird/whitelist/downmyip.sh
birdc c
# birdc c
cd
rm -rf bird_config