summaryrefslogtreecommitdiff
path: root/cryptfs.in
diff options
context:
space:
mode:
Diffstat (limited to 'cryptfs.in')
-rw-r--r--cryptfs.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/cryptfs.in b/cryptfs.in
index 9c86f15..9d5b35f 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 ! /sbin/ip -o addr show scope global | grep -q '\S'
+ while [ ${maxWait} -gt 0 ] && ! /sbin/ip -o addr show scope global | grep -q '\S'
do
>&2 echo -ne "."
sleep 1