From 57c4b1a2b2f423a711a49a175f0703fbd0b310ba Mon Sep 17 00:00:00 2001 From: bol-van Date: Wed, 20 Nov 2024 17:21:16 +0300 Subject: [PATCH] fix grep in default_route_interfaces6 --- common/linux_iphelper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/linux_iphelper.sh b/common/linux_iphelper.sh index e29ceb3..a392083 100644 --- a/common/linux_iphelper.sh +++ b/common/linux_iphelper.sh @@ -128,7 +128,7 @@ resolve_lower_devices() default_route_interfaces6() { - sed -nre 's/^00000000000000000000000000000000 00 [0-9a-f]{32} [0-9a-f]{2} [0-9a-f]{32} [0-9a-f]{8} [0-9a-f]{8} [0-9a-f]{8} [0-9a-f]{8} +(.*)$/\1/p' /proc/net/ipv6_route | grep -v lo | sort -u | xargs + sed -nre 's/^00000000000000000000000000000000 00 [0-9a-f]{32} [0-9a-f]{2} [0-9a-f]{32} [0-9a-f]{8} [0-9a-f]{8} [0-9a-f]{8} [0-9a-f]{8} +(.*)$/\1/p' /proc/net/ipv6_route | grep -v '^lo$' | sort -u | xargs } default_route_interfaces4()