19 lines
429 B
Bash
19 lines
429 B
Bash
#!/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 |