master #2

Merged
daxi20 merged 2 commits from :master into master 2025-10-12 17:19:29 +00:00
Showing only changes of commit d82ba494a7 - Show all commits

View File

@@ -1,5 +1,16 @@
#!/bin/bash
TABLE_NAME="ipv4_pub"
TABLE_ID=102
RT_TABLES="/etc/iproute2/rt_tables"
if ! grep -q "^${TABLE_ID}[[:space:]]\+${TABLE_NAME}" "$RT_TABLES"; then
echo "添加路由表 $TABLE_NAME(编号$TABLE_ID..."
echo "${TABLE_ID} ${TABLE_NAME}" >> "$RT_TABLES"
else
echo "路由表 $TABLE_NAME 已存在,无需创建"
fi
git clone git@ssh.git.nia.ink:brnet/bird_config.git
rm /etc/bird/bird.conf
rm /etc/bird/function/tables.conf