Commit dcae9c4f authored by Vitaly Lipatov's avatar Vitaly Lipatov

router: skip rt_tables write in alloc_table during --show dry-run

parent b64764e8
...@@ -159,7 +159,7 @@ alloc_table() ...@@ -159,7 +159,7 @@ alloc_table()
local num=200 local num=200
while [ $num -le 250 ] ; do while [ $num -le 250 ] ; do
if ! echo "$used" | grep -q "^${num}$" ; then if ! echo "$used" | grep -q "^${num}$" ; then
echo "$num $name" >> /etc/iproute2/rt_tables [ -z "$SHOW" ] && echo "$num $name" >> /etc/iproute2/rt_tables
vlog "Allocated table $num for $name" vlog "Allocated table $num for $name"
echo "$num" echo "$num"
return return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment