Files
bird_config/update.sh
2025-11-13 14:41:55 +08:00

19 lines
429 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
mv /etc/bird /etc/bird.old
mv bird_config/bird /etc/
rm -rf /etc/bird/peers
cp /etc/bird.old/peers /etc/bird/
rm -rf /etc/bird/conf
cp /etc/bird.old/conf /etc/bird/
rm /etc/bird/vars.conf
cp /etc/bird.old/vars.conf /etc/bird/vars.conf.dis
chmod -R 755 /etc/bird
echo "请务必检查配置文件修改vars文件名并重新启动bird"
cd
rm update.sh