Ticket #7613: multiwan.diffs

File multiwan.diffs, 680 bytes (added by anonymous, 6 years ago)
Line 
1--- multiwan.orig
2+++ multiwan
3@@ -661,7 +661,7 @@
4 
5         for TABLE in 170
6         do
7-                ip route | grep link | grep -Ev ^default | while read ROUTE
8+                ip route | egrep 'link| via ' | grep -Ev ^default | while read ROUTE
9                 do
10                 ip route add table $TABLE to $ROUTE
11                 done
12@@ -748,7 +748,7 @@
13 
14         for TABLE in $(expr $i + 170)
15         do
16-                ip route | grep link | grep -Ev ^default | while read ROUTE
17+                ip route | egrep 'link| via ' | grep -Ev ^default | while read ROUTE
18                 do
19                 ip route add table $TABLE to $ROUTE
20                 done