mirror of
https://github.com/vvzvlad/trickster-vpn.git
synced 2024-12-26 02:41:00 +03:00
fix redundant output in some environments
This commit is contained in:
parent
df24b7c862
commit
8548ed7bf6
@ -32,8 +32,10 @@ for line in $(cat $file_for_calc); do ipcalc $line |grep -v "deaggregate" >> $fi
|
|||||||
if [ -e $file_user ]; then echo "Add user subnets..."; cat $file_user >> $file_processed; fi
|
if [ -e $file_user ]; then echo "Add user subnets..."; cat $file_user >> $file_processed; fi
|
||||||
|
|
||||||
#Flush route table
|
#Flush route table
|
||||||
echo "Flush route table (down and up interface)..."
|
echo "Flush route table (down interface)..."
|
||||||
ifdown $interface && ifup $interface
|
ifdown $interface > /dev/null 2>&1
|
||||||
|
echo "Flush route table (up interface)..."
|
||||||
|
ifup $interface > /dev/null 2>&1
|
||||||
|
|
||||||
#Add route
|
#Add route
|
||||||
routes_count_in_file=`wc -l $file_processed`
|
routes_count_in_file=`wc -l $file_processed`
|
||||||
|
Loading…
Reference in New Issue
Block a user