From 8063a8862501f191aef0f51a6fd4f73c4a0f8acc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Schr=C3=B6tter?= Date: Tue, 25 Sep 2018 01:29:12 +0200 Subject: [PATCH] Fix uplink detection --- root/scripts/uplink.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/scripts/uplink.sh b/root/scripts/uplink.sh index 218255d..62e5f77 100755 --- a/root/scripts/uplink.sh +++ b/root/scripts/uplink.sh @@ -1,4 +1,4 @@ #!/bin/sh # Output interface name of active (IPv4) default routing. -ip -4 -o route get "8.8.8.8" | sed -r 's/^.+ dev ([A-Z0-9-]+) .+$/\1/i' | sed -r 's/^.+-//' +ip -4 -o route get "8.8.8.8" | sed -r 's/^.+ dev ([A-Z0-9.-]+) .+$/\1/i' | sed -r 's/^.+-//'