30 lines
579 B
Bash
30 lines
579 B
Bash
#!/bin/bash
|
|
|
|
cd
|
|
git clone https://git.nia.ink/brnet/bird_config.git
|
|
|
|
rm /etc/bird/bird.conf
|
|
mv ./bird_config/bird/bird.conf /etc/bird/
|
|
|
|
rm /etc/bird/conf/dn42.conf
|
|
|
|
rm /etc/bird/filter/*.conf
|
|
mv ./bird_config/bird/filter/*.conf /etc/bird/filter/
|
|
|
|
rm /etc/bird/function/*.conf
|
|
mv ./bird_config/bird/function/*.conf /etc/bird/function/
|
|
|
|
rm /etc/bird/net/dn42.conf
|
|
rm /etc/bird/net/unet.conf
|
|
mv ./bird_config/bird/net/unet.conf /etc/bird/net/
|
|
|
|
rm /etc/bird/template/*.conf
|
|
mv ./bird_config/bird/template/*.conf /etc/bird/template/
|
|
|
|
|
|
birdc c
|
|
cd
|
|
rm -rf bird_config
|
|
|
|
cd
|
|
rm update.sh |