Files
bird_config/update.sh
2025-12-16 16:27:51 +08:00

28 lines
687 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
cd
git clone https://git.nia.ink/brnet/bird_config.git
rm -rf /etc/bird/net/
mv ./bird_config/bird/net /etc/bird/ -f
rm -rf /etc/bird/function/
mv ./bird_config/bird/function /etc/bird/ -f
rm -rf /etc/bird/template/
mv ./bird_config/bird/template /etc/bird/ -f
mv ./bird_config/bird/peers/dn42 /etc/bird/peers -f
rm /etc/bird/conf/inet_func.conf
rm /etc/bird/bird.conf
mv ./bird_config/bird/bird.conf /etc/bird/
mv ./bird_config/bird/conf/dn42.conf /etc/bird/conf
mv ./bird_config/bird/conf/aaa_ipconfig.conf /etc/bird/conf
chmod -R 755 /etc/bird
echo "剩下的文件可能需要手动更新请手动更新后再行birdc c"
cd
rm -rf bird_config
cd
rm update.sh