From 286c22df2618810fbbb5783cac3c0a55256cf908 Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Thu, 25 Aug 2022 16:59:10 +0300 Subject: [PATCH] add comment lines(#) support in subnets_user_list.txt --- update_ru_routes.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_ru_routes.sh b/update_ru_routes.sh index b3f5b0e..c00efc1 100644 --- a/update_ru_routes.sh +++ b/update_ru_routes.sh @@ -29,7 +29,7 @@ cat $file_raw |grep "-" > $file_for_calc cat $file_raw |grep -v "-" > $file_processed for line in $(cat $file_for_calc); do ipcalc $line |grep -v "deaggregate" >> $file_processed; done -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 |grep -v "#" >> $file_processed; fi #Flush route table echo "Flush route table (down interface $interface)..."