change 4.0
This commit is contained in:
18
update.sh
18
update.sh
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user