Skip ip rule errors for now

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2017-11-30 16:23:41 +00:00
parent 086fa412ed
commit f65ecac5fe

View File

@@ -20,9 +20,9 @@ if [ -n "$HOST" ]; then
fi fi
if [ -z "$BIND" ]; then if [ -z "$BIND" ]; then
BIND=$(ip route get "$HOST" | awk '/src/{getline;print $0}' RS=' ') BIND=$(ip route get "$HOST" | awk '/src/{getline;print $0}' RS=' ')
ip rule add from "$BIND" table main pref "$((PREF-1))" ip rule add from "$BIND" table main pref "$((PREF-1))" || true
fi fi
ip rule add from all table 200 pref "$PREF" ip rule add from all table 200 pref "$PREF" || true
fi fi
exec glorytun \ exec glorytun \