19 lines
359 B
Bash
19 lines
359 B
Bash
#!/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/
|
||
rm -rf /etc/bird/bird.conf
|
||
mv bird_config/bird/bird.conf /etc/bird/
|
||
echo "net.core.rmem_max=8388608" >> /etc/sysctl.conf
|
||
sysctl -p
|
||
|
||
chmod -R 755 /etc/bird
|
||
|
||
echo "如有需要,可以birdc c"
|
||
cd
|
||
rm -rf bird_config
|
||
|
||
cd
|
||
rm update.sh |