fix redundant output in some environments

This commit is contained in:
vvzvlad 2022-08-22 04:52:55 +03:00
parent df24b7c862
commit 8548ed7bf6

View File

@ -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`