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