From 34d8f3e48cdf781fc3ebcd8fdc35bbb3fdf365cd Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Thu, 25 Aug 2022 02:24:55 +0300 Subject: [PATCH] small fixes --- update_ru_routes.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/update_ru_routes.sh b/update_ru_routes.sh index 2fc2b81..dc164f6 100644 --- a/update_ru_routes.sh +++ b/update_ru_routes.sh @@ -9,7 +9,7 @@ function ProgressBar { let _left=40-$_done _fill=$(printf "%${_done}s") _empty=$(printf "%${_left}s") - printf "\rLoading routes(${2}): [${_fill// /#}${_empty// /-}] ${_progress}%%" + printf "\rLoading routes (${1}/${2}): [${_fill// /#}${_empty// /-}] ${_progress}%%" } #Variables @@ -32,9 +32,9 @@ 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 interface)..." +echo "Flush route table (down interface $interface)..." ifdown $interface > /dev/null 2>&1 -echo "Flush route table (up interface)..." +echo "Up interface $interface..." ifup $interface > /dev/null 2>&1 #Add route