Files
bird_config/update.sh
2025-11-26 20:31:59 +08:00

19 lines
359 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
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