From 8548ed7bf69a0445f76088e5367baceccf42d4a6 Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Mon, 22 Aug 2022 04:52:55 +0300 Subject: [PATCH] fix redundant output in some environments --- update_ru_routes.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/update_ru_routes.sh b/update_ru_routes.sh index 54d668a..21eeb0d 100644 --- a/update_ru_routes.sh +++ b/update_ru_routes.sh @@ -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 #Flush route table -echo "Flush route table (down and up interface)..." -ifdown $interface && ifup $interface +echo "Flush route table (down interface)..." +ifdown $interface > /dev/null 2>&1 +echo "Flush route table (up interface)..." +ifup $interface > /dev/null 2>&1 #Add route routes_count_in_file=`wc -l $file_processed`