From: Jason A. Donenfeld Date: Wed, 27 Nov 2019 16:12:08 +0000 (+0100) Subject: wg-quick: linux: suppress error when finding unused table X-Git-Tag: v1.0.20191226~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a9abb2157547ad6e60931e741ce3707ab3c8788e;p=thirdparty%2Fwireguard-tools.git wg-quick: linux: suppress error when finding unused table Signed-off-by: Jason A. Donenfeld --- diff --git a/src/wg-quick/linux.bash b/src/wg-quick/linux.bash index 0764dc6..81b1629 100755 --- a/src/wg-quick/linux.bash +++ b/src/wg-quick/linux.bash @@ -199,7 +199,7 @@ add_default() { local table proto i iptables if ! get_fwmark table; then table=51820 - while [[ -n $(ip -4 route show table $table) || -n $(ip -6 route show table $table) ]]; do + while [[ -n $(ip -4 route show table $table 2>/dev/null) || -n $(ip -6 route show table $table 2>/dev/null) ]]; do ((table++)) done cmd wg set "$INTERFACE" fwmark $table