From ea16f98909eca5ef4d8d9bfcd50f52c6f7ae2003 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 23 Mar 2017 18:18:34 +0100 Subject: accept ipv6, too --- cryptfs.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cryptfs.in b/cryptfs.in index 802b5f5..9c86f15 100644 --- a/cryptfs.in +++ b/cryptfs.in @@ -42,7 +42,7 @@ start) if echo "${fsTab}" | grep -q "^\(ssh\|ftp\)fs#\S*\s\+${neededKeyFs}\s" then maxWait=120 - while ! ip addr | grep -v "127\.0\.0\.1" | grep -q "^\s*inet\s[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+/" + while ! /sbin/ip -o addr show scope global | grep -q '\S' do >&2 echo -ne "." sleep 1 -- cgit v1.2.3-70-g09d2