From f559f9bd3cf901ce18307ad2c2932bb61077cd8e Mon Sep 17 00:00:00 2001 From: xjasonlyu Date: Sat, 7 Nov 2020 20:51:48 +0800 Subject: [PATCH] fix: trim linkdown --- scripts/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index 9e4f29f..3756edb 100644 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -30,7 +30,7 @@ config_route() { # clone main route ip route show table main | while read -r route; do - ip route add $route table "$TABLE" + ip route add ${route%linkdown*} table "$TABLE" done # config default route